Browse Source

fix: Prevent Docker Hub login during pull requests

Yeuoly 4 months ago
parent
commit
fce99c8dc7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .github/workflows/build-push.yml

+ 1 - 0
.github/workflows/build-push.yml

@@ -55,6 +55,7 @@ jobs:
 
       - name: Login to Docker Hub
         uses: docker/login-action@v2
+        if: github.event_name != 'pull_request'
         with:
           username: ${{ env.DOCKERHUB_USER }}
           password: ${{ env.DOCKERHUB_TOKEN }}