build: buildx setup

This commit is contained in:
Anthony Potdevin 2024-05-21 20:16:17 +02:00
parent fdfe9b5959
commit 0a9ae34eb3
No known key found for this signature in database
GPG Key ID: 4403F1DFBE779457

View File

@ -40,8 +40,10 @@ fi
START=`date +%s`
docker buildx create --name mybuilder --use
docker buildx install
docker buildx build \
docker build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag $REPO:$VERSION \
--file ./Dockerfile \
@ -55,7 +57,7 @@ echo "Building basepath multiarch image for" $REPO
echo
echo
docker buildx build \
docker build \
--build-arg BASE_PATH='/thub' \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag $REPO:$BASE-$VERSION \