From 1e4b79ac46590711ca79069b1aaf70ac2d3d3181 Mon Sep 17 00:00:00 2001 From: joe miller Date: Mon, 16 Sep 2024 14:58:57 +0000 Subject: [PATCH] ci(gha): enable arm64 docker builds --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59f886b2..d5011817 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - joem/ci-arm64 # TODO temporary env: IMAGE_NAME: ${{ github.repository }} @@ -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