From c8b4d8534b2a2c9f74bdf9514285149211893d3e Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 28 Jan 2026 09:38:07 +1100 Subject: [PATCH] ci: pull correct platform variant for Docker image The task uses --platform flag which requires the matching architecture variant. Pull arm64 variant explicitly for Linux arm64 test. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/build-cross-image.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cross-image.yml b/.github/workflows/build-cross-image.yml index 6676a21ba..87af6520b 100644 --- a/.github/workflows/build-cross-image.yml +++ b/.github/workflows/build-cross-image.yml @@ -169,9 +169,18 @@ jobs: - name: Pull and tag Docker image run: | - # Pull the image from ghcr.io and tag it as 'wails-cross' for the task system - docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build.outputs.image_tag || 'latest' }} - docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build.outputs.image_tag || 'latest' }} wails-cross + # Pull both platform variants and tag them for the task system + # The task uses --platform flag which requires matching arch variant + IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build.outputs.image_tag || 'latest' }}" + + # For Linux arm64 test, we need the arm64 variant + if [ "${{ matrix.os }}" = "linux" ] && [ "${{ matrix.arch }}" = "arm64" ]; then + docker pull --platform linux/arm64 "$IMAGE" + docker tag "$IMAGE" wails-cross + else + docker pull "$IMAGE" + docker tag "$IMAGE" wails-cross + fi - name: Generate wails3 test project run: |