From 88bb89d1592703cfd8e988d3b0010385a64b3c6d Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Mon, 15 Jul 2024 19:44:46 +0200 Subject: [PATCH] WIP: multi-platform build --- .github/workflows/build-image.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 12d050a..5a181e8 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -86,9 +86,17 @@ jobs: with: submodules: true # for shunit2 + - name: Set up QEMU + run: | + sudo apt-get update + sudo apt-get install -y qemu-user-static + #docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - name: Build image run: | - docker build . \ + docker buildx create --use + docker buildx build . \ + --platform linux/amd64,linux/arm64 \ --pull=true \ --file="${{ inputs.containerfile }}" \ --tag="${{ inputs.image }}:${{ inputs.tag }}" \