Explorar o código

fix: Prevent Docker Hub login during pull requests

Yeuoly hai 4 meses
pai
achega
fce99c8dc7
Modificáronse 1 ficheiros con 1 adicións e 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 }}