Skip to content

Commit

Permalink
String concatenation *is* needed
Browse files Browse the repository at this point in the history
  • Loading branch information
zzkW35 committed Aug 7, 2023
1 parent e54f8f0 commit 7c7ba3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c7ba3c

Please sign in to comment.