Skip to content

Commit b799b40

Browse files
committed
feat: add multi-arch (amd64+arm64) Docker image builds
Add QEMU setup and platform flag to all three build jobs (Bay, Ship, Gull) so that CI produces multi-arch manifests supporting both linux/amd64 and linux/arm64. This enables native deployment on Apple Silicon Macs (via OrbStack or Docker Desktop) without Rosetta emulation, which was found to cause shell/exec to hang due to fork/exec syscall translation issues.
1 parent 6fafadf commit b799b40

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535

36+
- name: Set up QEMU
37+
uses: docker/setup-qemu-action@v3
38+
3639
- uses: docker/setup-buildx-action@v3
3740

3841
- name: Login to GHCR
@@ -58,6 +61,7 @@ jobs:
5861
uses: docker/build-push-action@v6
5962
with:
6063
context: pkgs/bay
64+
platforms: linux/amd64,linux/arm64
6165
push: true
6266
tags: ${{ steps.meta.outputs.tags }}
6367
labels: ${{ steps.meta.outputs.labels }}
@@ -71,6 +75,9 @@ jobs:
7175
steps:
7276
- uses: actions/checkout@v4
7377

78+
- name: Set up QEMU
79+
uses: docker/setup-qemu-action@v3
80+
7481
- uses: docker/setup-buildx-action@v3
7582

7683
- name: Login to GHCR
@@ -96,6 +103,7 @@ jobs:
96103
uses: docker/build-push-action@v6
97104
with:
98105
context: pkgs/ship
106+
platforms: linux/amd64,linux/arm64
99107
push: true
100108
tags: ${{ steps.meta.outputs.tags }}
101109
labels: ${{ steps.meta.outputs.labels }}
@@ -109,6 +117,9 @@ jobs:
109117
steps:
110118
- uses: actions/checkout@v4
111119

120+
- name: Set up QEMU
121+
uses: docker/setup-qemu-action@v3
122+
112123
- uses: docker/setup-buildx-action@v3
113124

114125
- name: Login to GHCR
@@ -134,6 +145,7 @@ jobs:
134145
uses: docker/build-push-action@v6
135146
with:
136147
context: pkgs/gull
148+
platforms: linux/amd64,linux/arm64
137149
push: true
138150
tags: ${{ steps.meta.outputs.tags }}
139151
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)