From 7c7ba3c0487304d91a2e89df4ac272daa47b71b5 Mon Sep 17 00:00:00 2001 From: Filippo Roggi Date: Tue, 8 Aug 2023 01:24:50 +0200 Subject: [PATCH] String concatenation *is* needed --- scripts/build_and_push.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_and_push.sh b/scripts/build_and_push.sh index 41303e0..4195ec7 100755 --- a/scripts/build_and_push.sh +++ b/scripts/build_and_push.sh @@ -56,14 +56,14 @@ TAGS=" -t $TAG" # For the latest version we do extra stuff. if [[ ! -z $PACKAGE_LATEST_VERSION ]] && [[ $PACKAGE_LATEST_VERSION = $PACKAGE_VERSION ]]; then - TAGS=" -t $IMAGE_LOCATION:py${PUBLISH_TARGET}-LATEST" + TAGS+=" -t $IMAGE_LOCATION:py${PUBLISH_TARGET}-LATEST" VERSION_SHORTER=$(echo $PACKAGE_VERSION | cut -d"." -f1,2) - TAGS=" -t $IMAGE_LOCATION:py${PUBLISH_TARGET}-${VERSION_SHORTER}" + TAGS+=" -t $IMAGE_LOCATION:py${PUBLISH_TARGET}-${VERSION_SHORTER}" VERSION_SHORTERER=$(echo $PACKAGE_VERSION | cut -d"." -f1) if [[ $VERSION_SHORTERER != "0" ]]; then - TAGS=" -t $IMAGE_LOCATION:py${PUBLISH_TARGET}-${VERSION_SHORTERER}" + TAGS+=" -t $IMAGE_LOCATION:py${PUBLISH_TARGET}-${VERSION_SHORTERER}" fi fi