ci: only login to docker on push events

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-03-07 10:24:30 +01:00
parent ee1781ffc7
commit 3348b20cbd
Signed by: harald
GPG key ID: F519A1143B3FBE32

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