Skip to content

Commit

Permalink
Chore: more automation on upgrade chart
Browse files Browse the repository at this point in the history
  • Loading branch information
chivalryq committed May 30, 2022
1 parent 7bcad94 commit f933f22
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions hack/upgrade_chart_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CHART_FILE=pkg/resources/static/vela/charts/vela-core/Chart.yaml

VERSION_TO=$1

# Works on Mac: see https://stackoverflow.com/questions/2320564/sed-i-command-for-in-place-editing-to-work-with-both-gnu-sed-and-bsd-osx
sed -i "" -e "s/version: v.*/version: $VERSION_TO/g" $CHART_FILE
sed -i "" -e "s/appVersion: v.*/appVersion: $VERSION_TO/g" $CHART_FILE
6 changes: 5 additions & 1 deletion hack/upgrade_vela.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ git apply -v --check --reject --apply --directory $WORKDIR "$PATCH_FILE_NAME"
echo "Patching done"

rm "$PATCH_FILE_NAME"
rm -rf kubevela
rm -rf kubevela

echo "Upgrading chart version..."

./hack/upgrade_chart_version $VERSION_TO
4 changes: 2 additions & 2 deletions pkg/resources/static/vela/charts/vela-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0
version: v1.4.0-beta.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.1.0
appVersion: v1.4.0-beta.2

home: https://kubevela.io
icon: https://kubevela.io/img/logo.svg

0 comments on commit f933f22

Please sign in to comment.