Skip to content

Commit

Permalink
chore: add chart index
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 committed Jun 24, 2024
1 parent c1c64ad commit 839dc5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/scripts/release-charts-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,20 @@ function release_charts_to_s3() {
aws s3 cp latest-version.txt s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR"/"$chart"/latest-version.txt
}

function update_index() {
helm plugin install https://github.com/hypnoglow/helm-s3.git
helm s3 init s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR" --force
helm repo index --url s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR" --merge index.yaml .
aws s3 cp index.yaml s3://"$GREPTIME_RELEASE_BUCKET"/"$RELEASE_DIR"/
}

function main() {
update_greptime_charts
release_charts_to_s3 greptime greptimedb-operator
release_charts_to_s3 greptime greptimedb-standalone
release_charts_to_s3 greptime greptimedb-cluster
release_charts_to_s3 oci://registry-1.docker.io/bitnamicharts etcd
update_index
}

# The entrypoint for the script.
Expand Down

0 comments on commit 839dc5d

Please sign in to comment.