mirror of
https://github.com/atmoz/sftp.git
synced 2025-01-26 13:50:57 -05:00
WIP: multi-platform build
This commit is contained in:
parent
8a88b8f201
commit
88bb89d159
1 changed files with 9 additions and 1 deletions
10
.github/workflows/build-image.yml
vendored
10
.github/workflows/build-image.yml
vendored
|
@ -86,9 +86,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true # for shunit2
|
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
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
docker build . \
|
docker buildx create --use
|
||||||
|
docker buildx build . \
|
||||||
|
--platform linux/amd64,linux/arm64 \
|
||||||
--pull=true \
|
--pull=true \
|
||||||
--file="${{ inputs.containerfile }}" \
|
--file="${{ inputs.containerfile }}" \
|
||||||
--tag="${{ inputs.image }}:${{ inputs.tag }}" \
|
--tag="${{ inputs.image }}:${{ inputs.tag }}" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue