Trigger Docker Hub login on tags as well

This commit is contained in:
Tim de Pater
2021-12-30 09:19:05 +01:00
parent 302cf16dcc
commit 77f9f02c7c

View File

@@ -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 }}