Skip to content

Commit 9d822ef

Browse files
committed
Build for arm64 separately
1 parent de53f3c commit 9d822ef

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
name: build (${{ matrix.runner.arch }})
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
runner:
19+
- name: ubuntu-latest
20+
arch: amd64
21+
- name: macos-14
22+
arch: arm64
23+
runs-on: ${{ matrix.runner.name }}
1524
permissions:
1625
contents: read
1726
packages: write
@@ -30,7 +39,7 @@ jobs:
3039

3140
- name: Build and push image
3241
run: |
33-
image_tag="ghcr.io/${{ github.repository }}:${{ github.run_id }}"
42+
image_tag="ghcr.io/${{ github.repository }}:${{ github.run_id }}-${{ matrix.runner.arch }}"
3443
./build \
3544
--tag "$image_tag" \
3645
--push

0 commit comments

Comments
 (0)