Skip to content

Commit

Permalink
fix: version parsing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanGalloway committed Feb 21, 2024
1 parent 61fca34 commit 12a5818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/chart-prerelease.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

export appVersion=$(git describe --match 'v*' --abbrev=0 HEAD --tags)
export chartVersion=$1
export appVersion=$(git describe --match 'v*' --abbrev=0 HEAD --tags || echo "0.0.0")
export chartVersion=$(echo $1 | sed 's/chart-\(.*\)/\1/')

./yq -i e '.version = strenv(chartVersion)' chart/Chart.yaml
./yq -i e '.appVersion = strenv(appVersion)"' chart/Chart.yaml
Expand Down

0 comments on commit 12a5818

Please sign in to comment.