Skip to content

Commit

Permalink
Trigger Docker Hub login on tags as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafeX committed Dec 30, 2021
1 parent 302cf16 commit 77f9f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
sarif_file: 'trivy-results.sarif'

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

0 comments on commit 77f9f02

Please sign in to comment.