From d1ba9e87e3a5bf31b1a8e27a18446282883aed24 Mon Sep 17 00:00:00 2001 From: joe miller Date: Mon, 19 Aug 2024 15:24:05 +0000 Subject: [PATCH] build arm64 docker images --- .github/workflows/release.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c681c29..4728ce9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,6 +52,12 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + # setup qemu and buildx for cross-builds (arm64) + - name: Set up QEMU (for arm64 builds) + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Release run: | set -eou pipefail @@ -61,8 +67,11 @@ jobs: git reset --hard && git clean -ffdx && git pull - docker build -t "$image" . - docker push "$image" + docker buildx build \ + -t "$image" \ + --platform linux/amd64,linux/arm64 \ + --push \ + . gh release create "v${version}" --target main --title "v${version}" --generate-notes env: