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 <noreply@anthropic.com>
This commit is contained in:
Lea Anthony 2026-01-28 09:38:07 +11:00
commit c8b4d8534b

View file

@ -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: |