From 96c227ce451e31b0838c63f31561fb611bafcce6 Mon Sep 17 00:00:00 2001 From: Kalin Krustev Date: Mon, 27 May 2024 13:55:50 +0000 Subject: [PATCH] fix: can't publish dev version for commits starting with 0 --- scripts/package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package.sh b/scripts/package.sh index 9da2853..65b2454 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -45,7 +45,7 @@ else mojaloop/chart-service mojaloop/chart-admin mojaloop/account-lookup-service - # Main Mojaloop Helm Chart + # Main Mojaloop Helm Chart mojaloop/mojaloop ) fi @@ -63,7 +63,7 @@ do # Development versions can be found with `helm search --devel`. Additionally, it is # possible to specify a development version in requirements.yaml. CURRENT_VERSION=$(grep '^version: [0-9]\+\.[0-9]\+\.[0-9]\+\s*$' "$chart/Chart.yaml" | cut -d' ' -f2) - NEW_VERSION="$CURRENT_VERSION-$BUILD_NUM.${GIT_SHA1:0:7}" + NEW_VERSION="$CURRENT_VERSION-$BUILD_NUM-${GIT_SHA1:0:7}" helm package -u -d ./repo "$chart" --version="$NEW_VERSION" set +u else # we're probably running in CI, this is a job triggered by a tag/release