From f994d6a8d8a73820e75f551312e49b7bcf0e2fdf Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 5 Nov 2023 09:00:48 -0600 Subject: [PATCH] Quoted latest string in Docker build script --- docker/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/build.sh b/docker/build.sh index c20928a..d86d6d5 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -26,7 +26,7 @@ platforms+=",linux/ppc64le" docker buildx build \ --build-arg TAG="${tag}" \ -t "${registry}/${image_name}:${image_version}" \ - $(if [ "${LATEST}" == "yes" ]; then echo "-t ${registry}/${image_name}:latest"; fi) \ + "$(if [ "${LATEST}" == "yes" ]; then echo "-t ${registry}/${image_name}:latest"; fi)" \ -f Dockerfile . \ --load @@ -34,6 +34,6 @@ docker buildx build \ docker buildx build --platform "${platforms}" \ --build-arg TAG="${tag}" \ -t "${registry}/${image_name}:${image_version}" \ - $(if [ "${LATEST}" == "yes" ]; then echo "-t ${registry}/${image_name}:latest"; fi) \ + "$(if [ "${LATEST}" == "yes" ]; then echo "-t ${registry}/${image_name}:latest"; fi)" \ -f Dockerfile . \ --push