Fix output, improve DRY_RUN

This commit is contained in:
Christian Mäder 2021-03-14 12:42:35 +01:00 committed by cimnine
parent 98acefe994
commit 5356d8e948
1 changed files with 6 additions and 2 deletions

View File

@ -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