Skip to content

Commit

Permalink
Merge pull request #4 from planetscale/joem/ci-arm64
Browse files Browse the repository at this point in the history
ci(gha): enable arm64 docker builds
  • Loading branch information
joemiller authored Oct 26, 2024
2 parents e88c512 + 4086ed3 commit 7d27d5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,19 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: type=sha

# setup qemu and buildx for cross-builds (arm64)
- name: Set up QEMU (for arm64 builds)
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3

- id: push
name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
#platforms: linux/amd64,linux/arm64 # TODO support ARM, too, with this and a different "driver"
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}

Expand Down

0 comments on commit 7d27d5b

Please sign in to comment.