Skip to content

Commit f725875

Browse files
committed
feat: add multi-arch build support
1 parent 0cec6b4 commit f725875

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/publish-docker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121

22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
2228
- name: Log in to GitHub Container Registry
2329
uses: docker/login-action@v3
2430
with:
@@ -40,6 +46,7 @@ jobs:
4046
with:
4147
context: ./containers
4248
file: ./containers/bun.Dockerfile
49+
platforms: linux/amd64,linux/arm64
4350
push: true
4451
tags: ${{ steps.meta.outputs.tags }}
4552
labels: ${{ steps.meta.outputs.labels }}

containers/bun.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM oven/bun:1-alpine
2-
2+
# Add git to allow submodules to be cloned
33
RUN apk add --no-cache git

0 commit comments

Comments
 (0)