From c39ddc42855ff8420b7d4a3ed39e2824a342e07c Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 20 Jul 2026 15:46:20 +0200 Subject: [PATCH] fix(ci): authenticate amd64 preview push --- .github/workflows/ci.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e3817bd0..79452a31e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,8 +186,21 @@ jobs: path: e2e/test-results/ retention-days: 7 - - name: Determine preview tag - id: preview + - name: Log in to GHCR for preview publication + if: | + !env.ACT && + ( + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'workflow_dispatch' && inputs.operation == 'publish') + ) + uses: docker/login-action@v4 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push amd64 preview image by digest + id: preview-build if: | !env.ACT && (