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=(
|
||||
--pull
|
||||
--output
|
||||
--output=type=image
|
||||
--target "${DOCKER_TARGET}"
|
||||
-f "${DOCKERFILE}"
|
||||
-t "${TARGET_DOCKER_TAG}"
|
||||
|
@ -404,7 +404,11 @@ for DOCKER_TARGET in "${DOCKER_TARGETS[@]}"; do
|
|||
|
||||
if [ -z "${BUILDX_BUILDER_NAME}" ]; then
|
||||
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"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue