From 5aaeb4be0926b33225c79b913142eaa18f4048bf Mon Sep 17 00:00:00 2001 From: spypsy Date: Mon, 18 Sep 2023 09:58:03 +0000 Subject: [PATCH] strip leading 'v' from dockerhub tags --- build-system/scripts/deploy_dockerhub | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-system/scripts/deploy_dockerhub b/build-system/scripts/deploy_dockerhub index ff9d69c7bc1..d42ff1cbe10 100755 --- a/build-system/scripts/deploy_dockerhub +++ b/build-system/scripts/deploy_dockerhub @@ -30,8 +30,8 @@ if [[ "$COMMIT_TAG" == *"/"* ]]; then COMMIT_TAG_VERSION="${COMMIT_TAG#*/}" echo "Tag was made for: $REPO_NAME" echo "Version: $COMMIT_TAG_VERSION" - - # Check if REPO_NAME is equal to REPOSITORY + + # Check if REPO_NAME is equal to REPOSITORY if [ "$REPO_NAME" != "$REPOSITORY" ]; then echo "REPO_NAME ($REPO_NAME) does not match REPOSITORY ($REPOSITORY). Exiting..." exit 1 @@ -48,6 +48,8 @@ VERSION=$(npx semver $COMMIT_TAG_VERSION) if [ -z "$VERSION" ]; then echo "$COMMIT_TAG_VERSION is not a semantic version." exit 1 +else + COMMIT_TAG_VERSION=$VERSION fi echo "Deploying to dockerhub: $IMAGE_DEPLOY_URI"