From 5c845aa44f92dae7e2a62a3b654208e0cd9dec46 Mon Sep 17 00:00:00 2001 From: Nicholas Barrow <75350582+barrownicholas@users.noreply.github.com> Date: Sun, 14 Sep 2025 19:17:42 +0000 Subject: [PATCH 1/2] fix: better os concurrency --- .../build/ci/github-actions/multi-platform.md | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/content/manuals/build/ci/github-actions/multi-platform.md b/content/manuals/build/ci/github-actions/multi-platform.md index 787abccda09d..cafc7268d3e1 100644 --- a/content/manuals/build/ci/github-actions/multi-platform.md +++ b/content/manuals/build/ci/github-actions/multi-platform.md @@ -123,17 +123,23 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.config.runs-on }} strategy: fail-fast: false matrix: - platform: - - linux/amd64 - - linux/arm64 + config: + - platform: linux/arm64 + runs-on: ubuntu-24.04-arm + - platform: linux/amd64 + runs-on: ubuntu-24.04 steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # important so tags/history are available + - name: Prepare run: | - platform=${{ matrix.platform }} + platform=${{ matrix.config.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - name: Docker meta @@ -158,10 +164,12 @@ jobs: id: build uses: docker/build-push-action@v6 with: - platforms: ${{ matrix.platform }} + platforms: ${{ matrix.config.platform }} labels: ${{ steps.meta.outputs.labels }} tags: ${{ env.REGISTRY_IMAGE }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true + cache-from: type=gha + cache-to: type=gha,mode=max - name: Export digest run: | From cb323918bf77063fc74d83fb9757013052e9a264 Mon Sep 17 00:00:00 2001 From: Nicholas Barrow <75350582+barrownicholas@users.noreply.github.com> Date: Wed, 17 Sep 2025 15:39:23 -0400 Subject: [PATCH 2/2] fix: use dynamic scopes --- content/manuals/build/ci/github-actions/multi-platform.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/build/ci/github-actions/multi-platform.md b/content/manuals/build/ci/github-actions/multi-platform.md index cafc7268d3e1..7840a2ac98da 100644 --- a/content/manuals/build/ci/github-actions/multi-platform.md +++ b/content/manuals/build/ci/github-actions/multi-platform.md @@ -168,8 +168,8 @@ jobs: labels: ${{ steps.meta.outputs.labels }} tags: ${{ env.REGISTRY_IMAGE }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=gha-${{ matrix.config.platform }} + cache-to: type=gha,mode=max,scope=gha-${{ matrix.config.platform }} - name: Export digest run: |