diff --git a/.github/worflows/deploy.yml b/.github/worflows/deploy.yml new file mode 100644 index 0000000..be49890 --- /dev/null +++ b/.github/worflows/deploy.yml @@ -0,0 +1,30 @@ +name: Build and Deploy Docker Container + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/n8n:latest