From 55dfbc9bc4bd89ff2f3da622578954833c6464fe Mon Sep 17 00:00:00 2001 From: Matt Roberts Date: Thu, 26 Sep 2024 19:49:43 +0100 Subject: [PATCH] Changing to use matrix strategy for parallel builds --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c27c3a84..91fffd893 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,9 @@ on: jobs: publish: runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/amd64, linux/arm64/v8] if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Dump GitHub context @@ -40,7 +43,7 @@ jobs: push: true context: . build-args: COMMITHASH=${{ github.event.workflow_run.head_sha }} - platforms: linux/amd64,linux/arm64/v8 + platforms: ${{ matrix.platform }} tags: getfider/fider:PR_${{ github.event.workflow_run.pull_requests[0].number }} cache-from: type=gha cache-to: type=gha,mode=max @@ -52,7 +55,7 @@ jobs: push: true context: . build-args: COMMITHASH=${{ github.event.workflow_run.head_sha }} - platforms: linux/amd64,linux/arm64/v8 + platforms: ${{ matrix.platform }} tags: | getfider/fider:SHA_${{ github.event.workflow_run.head_sha }} getfider/fider:${{ github.event.workflow_run.head_branch == 'main' && 'main' || 'stable' }} @@ -66,7 +69,7 @@ jobs: push: true context: . build-args: COMMITHASH=${{ github.event.workflow_run.head_sha }} - platforms: linux/amd64,linux/arm64/v8 + platforms: ${{ matrix.platform }} tags: getfider/fider:${{ github.event.workflow_run.display_title }} cache-from: type=gha cache-to: type=gha,mode=max