From 5356d8e948babfd62d81fe7c76b0c40ce726c250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Sun, 14 Mar 2021 12:42:35 +0100 Subject: [PATCH] Fix output, improve DRY_RUN --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 9caeb34..861350b 100755 --- a/build.sh +++ b/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