Skip to content

Commit 0a9ae34

Browse files
committed
build: buildx setup
1 parent fdfe9b5 commit 0a9ae34

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/buildMultiArchImage.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ fi
4040

4141
START=`date +%s`
4242

43+
docker buildx create --name mybuilder --use
44+
docker buildx install
4345

44-
docker buildx build \
46+
docker build \
4547
--platform linux/amd64,linux/arm64,linux/arm/v7 \
4648
--tag $REPO:$VERSION \
4749
--file ./Dockerfile \
@@ -55,7 +57,7 @@ echo "Building basepath multiarch image for" $REPO
5557
echo
5658
echo
5759

58-
docker buildx build \
60+
docker build \
5961
--build-arg BASE_PATH='/thub' \
6062
--platform linux/amd64,linux/arm64,linux/arm/v7 \
6163
--tag $REPO:$BASE-$VERSION \

0 commit comments

Comments
 (0)