diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 564cd74e9..4ce81e1e6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -377,7 +377,16 @@ jobs: [worker.oci] max-parallelism = 2 - name: Log in to GHCR + id: ghcr-login if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + continue-on-error: true + uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Retry GHCR login + if: steps.ghcr-login.outcome == 'failure' uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 with: registry: ghcr.io