diff --git a/build-all.sh b/build-all.sh old mode 100644 new mode 100755 index dfd069f..fdd6a72 --- a/build-all.sh +++ b/build-all.sh @@ -1,10 +1,10 @@ #!/bin/bash -cd ubuntu-18.04 && docker build -t lerentis/ansible:ubuntu-18.04 . -cd ubuntu-16.04 && docker build -t lerentis/ansible:ubuntu-16.04 . -cd ../alpine-3 && docker build -t lerentis/ansible:alpine-3 . -cd ../ubuntu-14.04 && docker build -t lerentis/ansible:ubuntu-14.04 . -cd ../fedora-24 && docker build -t lerentis/ansible:fedora-24 . -cd ../debian-8 && docker build -t lerentis/ansible:debian-8 . -cd ../debian-7 && docker build -t lerentis/ansible:debian-7 . -cd ../centos-7 && docker build -t lerentis/ansible:centos-7 . -cd ../arch && docker build -t lerentis/ansible:arch . \ No newline at end of file +cd ubuntu-18.04 && docker buildx build -t lerentis/ansible:ubuntu-18.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../ubuntu-16.04 && docker buildx build -t lerentis/ansible:ubuntu-16.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../alpine-3 && docker buildx build -t lerentis/ansible:alpine-3 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../ubuntu-14.04 && docker buildx build -t lerentis/ansible:ubuntu-14.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../fedora-24 && docker buildx build -t lerentis/ansible:fedora-24 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../debian-8 && docker buildx build -t lerentis/ansible:debian-8 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../debian-7 && docker buildx build -t lerentis/ansible:debian-7 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../centos-7 && docker buildx build -t lerentis/ansible:centos-7 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../arch && docker buildx build -t lerentis/ansible:arch --platform=linux/arm,linux/arm64,linux/amd64 . --push