Skip to content

Commit

Permalink
WIP: multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
atmoz committed Jul 15, 2024
1 parent 8a88b8f commit 2401978
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- name: Set up Docker Buildx
run: |
#sudo apt-get update
#sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo apt-get install -y docker-buildx
docker buildx create --use
- name: Build image
run: |
docker build . \
docker buildx build . \
--platform linux/amd64,linux/arm64 \
--pull=true \
--file="${{ inputs.containerfile }}" \
--tag="${{ inputs.image }}:${{ inputs.tag }}" \
Expand Down

0 comments on commit 2401978

Please sign in to comment.