Skip to content

Commit

Permalink
Fix/3251 gitversion config (#2579)
Browse files Browse the repository at this point in the history
* 3251 Adding workaround configuration for Gitversion

* 3251 Adding workaround configuration for Gitversion
  • Loading branch information
dzmitrydd authored Oct 23, 2024
1 parent efa61a9 commit 70ba243
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,14 @@ jobs:
run: |
cd ./helmchart
# workaround to separate versioning modes for prod and non-prod
if [[ ${{ github.ref_name}} == "main" ]]; then
export helm_tag="$GITVERSION_SEMVER"
else
export helm_tag="$GITVERSION_MAJOR.$GITVERSION_MINOR.$GITVERSION_COMMITSSINCEVERSIONSOURCE"
fi
# temporary solution until we have a single versioning mode
# if [[ ${{ github.ref_name}} == "main" ]]; then
# export helm_tag="$GITVERSION_SEMVER"
# else
# export helm_tag="$GITVERSION_MAJOR.$GITVERSION_MINOR.$GITVERSION_COMMITSSINCEVERSIONSOURCE"
# fi
export helm_tag="$GITVERSION_MAJOR.$GITVERSION_MINOR.$GITVERSION_COMMITSSINCEVERSIONSOURCE"
echo "[INFO] ${helm_tag}..."
echo "[INFO] Replace Helm Chart package version..."
Expand Down

0 comments on commit 70ba243

Please sign in to comment.