Skip to content

Commit

Permalink
Fix appVersion problem
Browse files Browse the repository at this point in the history
  • Loading branch information
burakince committed Dec 1, 2024
1 parent 7f82181 commit 59848f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ CHART_VERSION=$(grep '^version:' $CHART_PATH/Chart.yaml | awk '{print $2}')
CHART_VERSION_NEXT="${CHART_VERSION%.*}.$((${CHART_VERSION##*.}+1))"

sed -i'.bak' -e 's|^version:.*|version: '"$CHART_VERSION_NEXT"'|g' $CHART_PATH/Chart.yaml
sed -i'.bak' -e 's|^appVersion:.*|appVersion: '/""$IMAGE_TAG"/"'|g' $CHART_PATH/Chart.yaml
sed -i'.bak' -e 's|^appVersion:.*|appVersion: '\""$IMAGE_TAG"\"'|g' $CHART_PATH/Chart.yaml

if [ "$DEBUG_MODE" = true ] ; then
cat $CHART_PATH/Chart.yaml
Expand Down
4 changes: 2 additions & 2 deletions test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ teardown() {
[ "$status" -eq 0 ]

# Verify Chart.yaml was updated correctly
run grep "version: $EXPECTED_VERSION" $REPOSITORY/$CHART_PATH/Chart.yaml
run grep "version: 0.0.2" $REPOSITORY/$CHART_PATH/Chart.yaml
[ "$status" -eq 0 ]

run grep "appVersion: /"$EXPECTED_APP_VERSION"/" $REPOSITORY/$CHART_PATH/Chart.yaml
run grep "appVersion: \"eb8b0d81\"" $REPOSITORY/$CHART_PATH/Chart.yaml
[ "$status" -eq 0 ]

# Verify git commit was made
Expand Down

0 comments on commit 59848f4

Please sign in to comment.