World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#7066] fix(build): Update chart version in the release script (#7069)
roryqic8fd653d4406
diff --git a/dev/release/release-tag.sh b/dev/release/release-tag.shindex 09ce6d26b4..69d7202fe9 100755--- a/dev/release/release-tag.sh+++ b/dev/release/release-tag.sh@@ -79,10 +79,19 @@ git config user.email "$GIT_EMAIL"PYGRAVITINO_RELEASE_VERSION="${RELEASE_VERSION/-incubating}"PYGRAVITINO_NEXT_VERSION=$(echo $NEXT_VERSION | sed 's/-incubating-SNAPSHOT/.dev0/')-# Create release version for Java, Python and Rust+# Create release version for Java, Python ,Rust and Chartsed -i".tmp1" 's/version = .*$/version = '"$RELEASE_VERSION"'/g' gradle.propertiessed -i".tmp2" 's/ version=.*$/ version="'"$PYGRAVITINO_RELEASE_VERSION"'",/g' clients/client-python/setup.pysed -i".tmp3" 's/^version = .*$/version = \"'"$RELEASE_VERSION"'\"/g' clients/filesystem-fuse/Cargo.toml+sed -i".tmp4" 's/^appVersion: .*$/appVersion: '"$RELEASE_VERSION"'/g' dev/charts/gravitino/Chart.yaml++CHART_VERSION=$(grep -e '^version: .*' dev/charts/gravitino/Chart.yaml | cut -d':' -f2 | sed 's/^ *//;s/ *$//')+CHART_SHORT_VERSION=$(echo "$CHART_VERSION" | cut -d . -f 1-2)+CHART_REV=$(echo "$CHART_VERSION" | cut -d . -f 3 | cut -d '-' -f 1)+CHART_REV=$((CHART_REV + 1))+NEXT_CHART_VERSION="${CHART_SHORT_VERSION}.${CHART_REV}"+sed -i".tmp5" 's/^version: .*$/version: '"$NEXT_CHART_VERSION"'/g' dev/charts/gravitino/Chart.yaml+# update docs version"$SELF/update-java-doc-version.sh" "$RELEASE_VERSION" "$SELF/gravitino"@@ -92,9 +101,14 @@ echo "Creating tag $RELEASE_TAG at the head of $GIT_BRANCH"git tag $RELEASE_TAG# Create next version-sed -i".tmp4" 's/version = .*$/version = '"$NEXT_VERSION"'/g' gradle.properties-sed -i".tmp5" 's/ version=.*$/ version="'"$PYGRAVITINO_NEXT_VERSION"'",/g' clients/client-python/setup.py-sed -i".tmp6" 's/^version = .*$/version = \"'"$NEXT_VERSION"'\"/g' clients/filesystem-fuse/Cargo.toml+sed -i".tmp6" 's/version = .*$/version = '"$NEXT_VERSION"'/g' gradle.properties+sed -i".tmp7" 's/ version=.*$/ version="'"$PYGRAVITINO_NEXT_VERSION"'",/g' clients/client-python/setup.py+sed -i".tmp8" 's/^version = .*$/version = \"'"$NEXT_VERSION"'\"/g' clients/filesystem-fuse/Cargo.toml+sed -i".tmp9" 's/appVersion: .*$/appVersion: '"$NEXT_VERSION"'/g' dev/charts/gravitino/Chart.yaml+CHART_REV=$((CHART_REV + 1))+NEXT_CHART_VERSION="${CHART_SHORT_VERSION}.${CHART_REV}"+sed -i".tmp10" 's/^version: .*$/version: '"$NEXT_CHART_VERSION"'/g' dev/charts/gravitino/Chart.yaml+git commit -a -m "Preparing development version $NEXT_VERSION"if ! is_dry_run; then