Skip to content

Commit 77f9f02

Browse files
committed
Trigger Docker Hub login on tags as well
1 parent 302cf16 commit 77f9f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
sarif_file: 'trivy-results.sarif'
5050

5151
- name: Login to Docker Hub
52-
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
52+
if: (github.ref == 'refs/heads/master' && github.event_name == 'push') || contains(github.ref, 'refs/tags/')
5353
uses: docker/login-action@v1
5454
with:
5555
username: ${{ secrets.DOCKERHUB_USERNAME }}

0 commit comments

Comments
 (0)