Skip to content

Commit

Permalink
refactor: release latest charts to s3 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 authored Jun 26, 2024
1 parent c2cf47b commit cf2ab45
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/scripts/release-charts-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit cf2ab45

Please sign in to comment.