From 184eabdea520c9607458b1ae4a2da15439608135 Mon Sep 17 00:00:00 2001 From: bkellam Date: Fri, 6 Sep 2024 11:34:49 -0700 Subject: [PATCH] Try to speed up ghcr publish using arch matrix --- .github/workflows/ghcr-publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ghcr-publish.yml b/.github/workflows/ghcr-publish.yml index 52979622..549fcdfa 100644 --- a/.github/workflows/ghcr-publish.yml +++ b/.github/workflows/ghcr-publish.yml @@ -30,6 +30,9 @@ jobs: # This is used to complete the identity challenge # with sigstore/fulcio when running outside of PRs. id-token: write + strategy: + matrix: + architecture: [amd64, arm64] steps: - name: Checkout repository @@ -77,7 +80,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - platforms: linux/amd64,linux/arm64 + platforms: linux/${{ matrix.architecture }} # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker