Skip to content

Commit

Permalink
Changing to use matrix strategy for parallel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoberts committed Sep 26, 2024
1 parent 09a10a0 commit 55dfbc9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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' }}
Expand All @@ -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

0 comments on commit 55dfbc9

Please sign in to comment.