-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding old index.yaml and artifacthub metadata file to repo
- Loading branch information
1 parent
4773750
commit d18c515
Showing
3 changed files
with
10,525 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
repositoryID: 8ea3e1b3-7f98-4ee9-95d7-58bcca61b846 | ||
owners: | ||
- name: max.williams | ||
email: [email protected] | ||
- name: gonzalo.lopez | ||
email: [email protected] |
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,40 @@ | ||
#!/bin/bash | ||
|
||
# Run this script to push the artifacthub-repo.yml file to every helm chart OCI package | ||
# This should only need to be run once for each packge | ||
|
||
repo_root=$(git rev-parse --show-toplevel 2> /dev/null) | ||
|
||
if [[ $? -ne 0 ]]; then | ||
echo "Error: Not in a Git repository." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -d "$repo_root" ]]; then | ||
echo "Error: Could not determine repository root." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ "$(pwd)" != "$repo_root" ]]; then | ||
echo "Error: Not at the root of the deliveryhero/helm-charts repository. Current directory is $(pwd), but repo root is $repo_root" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -f "artifacthub-repo.yml" ]]; then | ||
echo "Error: artifacthub-repo.yml does not exist." >&2 | ||
exit 1 | ||
fi | ||
|
||
for chart in stable/*/; do | ||
chart_name=${chart%/} # Remove the trailing / | ||
chart_name=${chart_name##*/} # Remove everything up to the last / | ||
|
||
echo "Processing chart: $chart_name" | ||
|
||
oras push \ | ||
ghcr.io/deliveryhero/helm-charts/${chart_name}:artifacthub.io \ | ||
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \ | ||
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml | ||
done | ||
|
||
exit 0 |
Oops, something went wrong.