Ver código fonte

fix: Prevent Docker Hub login during pull requests

Yeuoly 4 meses atrás
pai
commit
fce99c8dc7
1 arquivos alterados com 1 adições e 0 exclusões
  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 }}