Skip to content

Commit 295ea42

Browse files
committed
build.sh: optional BUILDX_MULTI to pick a builder
1 parent b533989 commit 295ea42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎build.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ if echo "$@" | grep -v "force" 2>/dev/null >/dev/null; then
2626
fi
2727
fi
2828

29-
docker buildx build -q --pull --no-cache --platform "$PLATFORM" -t "$IMG:$TAG" --push .
29+
docker buildx build -q --pull --no-cache --platform "$PLATFORM" -t "$IMG:$TAG" --push ${BUILDX_MULTI:+--builder "$BUILDX_MULTI"} .
3030

31-
echo "$@" | grep "release" 2>/dev/null >/dev/null && echo ">> releasing new latest" && docker buildx build -q --pull --platform "$PLATFORM" -t "$IMG:latest" --push .
31+
echo "$@" | grep "release" 2>/dev/null >/dev/null && echo ">> releasing new latest" && docker buildx build -q --pull --platform "$PLATFORM" -t "$IMG:latest" --push ${BUILDX_MULTI:+--builder "$BUILDX_MULTI"} .
3232

3333
# make sure to exit if this is only version check
3434
echo "$@" | grep "version-check" && exit 0

0 commit comments

Comments
 (0)