From 4086ed3e6ff29d484d2ef654e531c6887452e3c1 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59f886b2..52c301f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}