-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish helm chart to S3 bucket (#109)
- Loading branch information
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ test-db | |
node_modules | ||
/release | ||
.release_version | ||
chart_releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
entries: | ||
sidecar: | ||
- apiVersion: v2 | ||
appVersion: v1.0.0-beta.1 | ||
created: "2024-11-13T21:23:12.29288-06:00" | ||
description: A Helm chart for the EigenLayer sidecar | ||
digest: bb14bb5ec625c6b4596a042aa9b4a1661bb58f1e9710e1cd17250e71ae3e31ec | ||
name: sidecar | ||
type: application | ||
urls: | ||
- https://eigenlayer-sidecar.s3.amazonaws.com/helm/sidecar-0.1.0-beta.1.tgz | ||
version: 0.1.0-beta.1 | ||
generated: "2024-11-13T21:23:12.292376-06:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
bucket_name="eigenlayer-sidecar" | ||
helm_repo_url="https://eigenlayer-sidecar.s3.amazonaws.com/helm" | ||
|
||
mkdir chart_releases || true | ||
|
||
helm package ./charts/* --destination chart_releases | ||
|
||
if aws s3 ls "s3://${bucket_name}/helm/index.yaml" &>/dev/null; then | ||
echo "Downloading existing index.yaml" | ||
aws s3 cp "s3://${bucket_name}/helm/index.yaml" ./chart_releases/ | ||
|
||
echo "Generating index" | ||
helm repo index --merge ./chart_releases/index.yaml --url $helm_repo_url ./chart_releases | ||
else | ||
echo "Generating index for the first time" | ||
helm repo index --url $helm_repo_url ./chart_releases | ||
fi | ||
|
||
aws s3 sync ./chart_releases/ "s3://${bucket_name}/helm" |