We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ff00d commit 65d77a1Copy full SHA for 65d77a1
.github/workflows/docker.yml
@@ -26,7 +26,7 @@ jobs:
26
uses: docker/setup-buildx-action@v1
27
28
- name: Log in to Docker Hub
29
- if: github.event_name != 'pull_request'
+ if: startsWith(github.ref, 'refs/tags/v')
30
uses: docker/login-action@v1
31
with:
32
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -58,7 +58,7 @@ jobs:
58
tags: ${{ steps.meta.outputs.tags }}
59
labels: ${{ steps.meta.outputs.labels }}
60
# build on feature branches, push only on master branch
61
- push: ${{ github.ref == 'refs/heads/master' }}
+ push: ${{ startsWith(github.ref, 'refs/tags/v') }}
62
63
- name: Image digest
64
run: echo ${{ steps.docker_build.outputs.digest }}
0 commit comments