Explorar el Código

fix: Prevent Docker Hub login during pull requests

Yeuoly hace 4 meses
padre
commit
fce99c8dc7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 }}