ci: only login to docker on push events (#48)

This commit is contained in:
Harald Hoyer 2024-03-07 10:30:19 +01:00 committed by GitHub
commit 4723b8302d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,6 +52,7 @@ jobs:
nix build .#container-vault-auth-tee
docker load -i result
- name: Log in to Docker Hub
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}