From cf2ab450b2cc81aec9682b616944562cd7f78c25 Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 26 Jun 2024 11:52:47 +0800 Subject: [PATCH] refactor: release latest charts to s3 (#136) --- .github/scripts/release-charts-to-s3.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/scripts/release-charts-to-s3.sh b/.github/scripts/release-charts-to-s3.sh index 103843b..0176a11 100755 --- a/.github/scripts/release-charts-to-s3.sh +++ b/.github/scripts/release-charts-to-s3.sh @@ -10,11 +10,6 @@ function update_greptime_charts() { helm repo update } -function install_helm_s3() { - helm plugin install https://github.com/hypnoglow/helm-s3.git - helm repo add greptime-cn s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR"/package -} - function release_charts_to_s3() { repo=$1 chart=$2 @@ -43,7 +38,9 @@ function release_charts_to_s3() { aws s3 cp "$chart"/"$package" s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR"/"$chart"/"$version"/"$package" - helm s3 push "$chart"/"$package" greptime-cn --force + echo "Releasing package "$chart-latest.tgz" to 's3://$GREPTIME_RELEASE_BUCKET/$RELEASE_DIR/$chart/latest'..." + + aws s3 cp "$chart"/"$package" s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR"/"$chart"/latest/"$chart"-latest.tgz echo "$version" > latest-version.txt @@ -53,7 +50,6 @@ function release_charts_to_s3() { function main() { update_greptime_charts - install_helm_s3 release_charts_to_s3 greptime greptimedb-operator release_charts_to_s3 greptime greptimedb-standalone release_charts_to_s3 greptime greptimedb-cluster