diff --git a/.github/workflows/docker_pub.yaml b/.github/workflows/docker_pub.yaml new file mode 100644 index 0000000..2919b68 --- /dev/null +++ b/.github/workflows/docker_pub.yaml @@ -0,0 +1,25 @@ +name: Publish Docker image + +on: + push: + branches: [ add-docker ] + +jobs: + push_to_registry: + name: Push Docker image to GitHub Packages + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository }}:latest \ No newline at end of file