From 6e4ee35cc7918b06cd8587fcb6ecb4bcc4fad305 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 12d050a..886197e 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -86,9 +86,23 @@ 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 + sudo qemu-user-static --reset -p yes + + - name: Set up Docker Buildx + run: | + #sudo apt-get update + #sudo apt-get install -y docker-ce docker-ce-cli containerd.io + docker buildx create --use + - name: Build image run: | - docker build . \ + docker buildx . \ + --platform linux/amd64,linux/arm64 \ --pull=true \ --file="${{ inputs.containerfile }}" \ --tag="${{ inputs.image }}:${{ inputs.tag }}" \