Explorar o código

Merge pull request #95 from langgenius/fix/ci-credentials

fix: Prevent Docker Hub login during pull requests
Yeuoly hai 4 meses
pai
achega
923f0e7f5e
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 }}