Quoted latest string in Docker build script

This commit is contained in:
Seednode 2023-11-05 09:00:48 -06:00
parent ad8309e304
commit f994d6a8d8
1 changed files with 2 additions and 2 deletions

View File

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