Skip to content

Commit

Permalink
ci(gha): enable arm64 docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed Sep 16, 2024
1 parent e934e9d commit 1e4b79a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- joem/ci-arm64 # TODO temporary

env:
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -37,14 +38,21 @@ 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"
push: true
platforms: linux/amd64,linux/arm64
# push: true
push: false # TODO temp
tags: ${{ steps.meta.outputs.tags }}

- name: Generate artifact attestation
Expand Down

0 comments on commit 1e4b79a

Please sign in to comment.