Skip to content

Commit

Permalink
build: buildx setup
Browse files Browse the repository at this point in the history
  • Loading branch information
apotdevin committed May 21, 2024
1 parent fdfe9b5 commit 0a9ae34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/buildMultiArchImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 0a9ae34

Please sign in to comment.