From 26eeda67d1f1fc1696b9fb02680079beba42b142 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sun, 17 Nov 2019 18:15:09 +0100 Subject: [PATCH] using buildx to support multiarch. sadly not available for drone :/ --- build-all.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 build-all.sh 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