diff --git a/hack/upgrade_chart_version.sh b/hack/upgrade_chart_version.sh new file mode 100755 index 0000000..6c74ce4 --- /dev/null +++ b/hack/upgrade_chart_version.sh @@ -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 \ No newline at end of file diff --git a/hack/upgrade_vela.sh b/hack/upgrade_vela.sh index b59e478..d568fd6 100755 --- a/hack/upgrade_vela.sh +++ b/hack/upgrade_vela.sh @@ -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 \ No newline at end of file +rm -rf kubevela + +echo "Upgrading chart version..." + +./hack/upgrade_chart_version $VERSION_TO \ No newline at end of file diff --git a/pkg/resources/static/vela/charts/vela-core/Chart.yaml b/pkg/resources/static/vela/charts/vela-core/Chart.yaml index 3388328..1bffdf5 100644 --- a/pkg/resources/static/vela/charts/vela-core/Chart.yaml +++ b/pkg/resources/static/vela/charts/vela-core/Chart.yaml @@ -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