Fix output, improve DRY_RUN
This commit is contained in:
parent
98acefe994
commit
5356d8e948
8
build.sh
8
build.sh
|
@ -335,7 +335,7 @@ for DOCKER_TARGET in "${DOCKER_TARGETS[@]}"; do
|
||||||
###
|
###
|
||||||
DOCKER_BUILD_ARGS=(
|
DOCKER_BUILD_ARGS=(
|
||||||
--pull
|
--pull
|
||||||
--output
|
--output=type=image
|
||||||
--target "${DOCKER_TARGET}"
|
--target "${DOCKER_TARGET}"
|
||||||
-f "${DOCKERFILE}"
|
-f "${DOCKERFILE}"
|
||||||
-t "${TARGET_DOCKER_TAG}"
|
-t "${TARGET_DOCKER_TAG}"
|
||||||
|
@ -404,7 +404,11 @@ for DOCKER_TARGET in "${DOCKER_TARGETS[@]}"; do
|
||||||
|
|
||||||
if [ -z "${BUILDX_BUILDER_NAME}" ]; then
|
if [ -z "${BUILDX_BUILDER_NAME}" ]; then
|
||||||
echo "👷 Creating new Buildx Builder"
|
echo "👷 Creating new Buildx Builder"
|
||||||
BUILDX_BUILDER_NAME=$($DRY docker buildx create)
|
if [ -z "${DRY_RUN}" ]; then
|
||||||
|
BUILDX_BUILDER_NAME=$(docker buildx create)
|
||||||
|
else
|
||||||
|
BUILDX_BUILDER_NAME="DRY_RUN_NEW_BUIDLER"
|
||||||
|
fi
|
||||||
BUILDX_BUILDER_CREATED="yes"
|
BUILDX_BUILDER_CREATED="yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue