Skip to content

Commit b349467

Browse files
committed
ci(gha): enable arm64 docker builds
1 parent e934e9d commit b349467

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- joem/ci-arm64 # TODO temporary
89

910
env:
1011
IMAGE_NAME: ${{ github.repository }}
@@ -37,13 +38,19 @@ jobs:
3738
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3839
tags: type=sha
3940

41+
# setup qemu and buildx for cross-builds (arm64)
42+
- name: Set up QEMU (for arm64 builds)
43+
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
46+
4047
- id: push
4148
name: Build and push Docker image
4249
uses: docker/build-push-action@v6
4350
with:
4451
context: .
4552
labels: ${{ steps.meta.outputs.labels }}
46-
#platforms: linux/amd64,linux/arm64 # TODO support ARM, too, with this and a different "driver"
53+
platforms: linux/amd64,linux/arm64
4754
push: true
4855
tags: ${{ steps.meta.outputs.tags }}
4956

0 commit comments

Comments
 (0)