From c05a1a52c600a7722ef3923e653c73e932215cd9 Mon Sep 17 00:00:00 2001 From: scherepanov Date: Thu, 20 May 2021 22:41:34 +0400 Subject: [PATCH] multiarch --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 45c1b70..c47959d 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash cd $(dirname $0) BREW_VERSION=$(curl -L --silent https://api.github.com/repos/Homebrew/brew/releases | jq -r '.[].tag_name' | head -1) -docker build --build-arg BREW_VERSION=${BREW_VERSION} -t digitalspacestudio/linuxbrew:${BREW_VERSION} . +docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --build-arg BREW_VERSION=${BREW_VERSION} -t digitalspacestudio/linuxbrew:${BREW_VERSION} . docker tag "digitalspacestudio/linuxbrew:${BREW_VERSION}" "digitalspacestudio/linuxbrew:latest" docker push "digitalspacestudio/linuxbrew:${BREW_VERSION}" -docker push "digitalspacestudio/linuxbrew:latest" \ No newline at end of file +docker push "digitalspacestudio/linuxbrew:latest"