diff --git a/.github/workflows/build-image-and-publish.yml b/.github/workflows/build-image-and-publish.yml new file mode 100644 index 0000000..60e9483 --- /dev/null +++ b/.github/workflows/build-image-and-publish.yml @@ -0,0 +1,26 @@ +name: Build and Publish Docker Image + +on: + push: + branches: [ main, dev ] + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Check Out Repo + uses: actions/checkout@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: Dockerfile + push: true + tags: dzejkop/tx-sitter:latest