Skip to content

Commit 0166a8b

Browse files
committed
🏗️ build: parallelize multi arch build
1 parent 24de21f commit 0166a8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build_image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
build:
1515
name: Build and publish container images
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
architecture: [amd64, arm64]
1720
steps:
1821
- name: Checkout code
1922
uses: actions/checkout@v4
@@ -54,7 +57,7 @@ jobs:
5457
uses: docker/build-push-action@v5
5558
with:
5659
push: true
57-
platforms: linux/amd64,linux/arm64
60+
platforms: linux/${{ matrix.architecture }}
5861
tags: ${{ steps.meta.outputs.tags }}
5962
labels: ${{ steps.meta.outputs.labels }}
6063
build-args: |

0 commit comments

Comments
 (0)