From e0325e5cf9d35939fbe4b44e425b6219cb6bba49 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 27 Dec 2025 13:25:01 +0000 Subject: [PATCH] fix(ci): test multi-arch Docker build in preflight before releasing Previously, preflight only built amd64 images, so multi-arch failures (like the QEMU timeout in 5.0.5) weren't caught until after the release was published. Now preflight builds linux/amd64,linux/arm64 staging images. If multi-arch build fails, the release pipeline stops before publishing. Combined with the Dockerfile fix (forcing amd64 for build stages), this ensures Docker build issues are caught early. --- .github/workflows/create-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 9087f7607..73ae84a8e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -170,12 +170,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push staging Docker images + - name: Build and push staging Docker images (multi-arch) uses: docker/build-push-action@v6 with: context: . target: runtime - platforms: linux/amd64 # amd64-only for faster preflight; multi-arch happens in release job + platforms: linux/amd64,linux/arm64 # Multi-arch to catch build issues before release push: true provenance: false cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/pulse:buildcache @@ -185,13 +185,13 @@ jobs: tags: | ghcr.io/${{ github.repository_owner }}/pulse:staging-${{ needs.extract_version.outputs.tag }} - - name: Build and push staging Docker agent image + - name: Build and push staging Docker agent image (multi-arch) uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile target: agent_runtime - platforms: linux/amd64 # amd64-only for faster preflight; multi-arch happens in release job + platforms: linux/amd64,linux/arm64 # Multi-arch to catch build issues before release push: true provenance: false cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/pulse-docker-agent:buildcache