Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: can't publish dev version for commits starting with 0 #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down