ci: don't login to the Docker hub for PRs

This commit is contained in:
Kévin Dunglas
2025-05-20 17:28:15 +02:00
parent 663aff7cc4
commit 9a8ad979e0
2 changed files with 5 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ jobs:
platforms: ${{ matrix.platform }}
- name: Login to DockerHub
uses: docker/login-action@v3
if: github.event.pull_request.head.repo.full_name == github.repository
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
@@ -222,6 +223,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
if: github.event.pull_request.head.repo.full_name == github.repository
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}