-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempting to host and update helm charts repo index.yaml on github (#…
…637) * update actions to include all steps * add a small chart change * update chart readme * bump version --------- Co-authored-by: Max Williams <[email protected]>
- Loading branch information
1 parent
b9b34cd
commit 34bdf61
Showing
3 changed files
with
25 additions
and
5 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 |
---|---|---|
|
@@ -42,12 +42,26 @@ jobs: | |
shell: bash | ||
run: echo "${GITHUB_TOKEN}" | helm registry login ${REGISTRY} --username ${GITHUB_ACTOR} --password-stdin | ||
env: | ||
REGISTRY: "ghcr.io/${{ github.repository }}" | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Push Helm Charts to Github Container Registry (OCI) | ||
- name: Push Helm Charts to Github Container Registry as OCI packages | ||
shell: bash | ||
run: | | ||
for f in *.tgz ; do | ||
echo "$f" | ||
helm push $f oci://${REGISTRY,,} | ||
done | ||
- name: Generate Helm repo index.yaml | ||
shell: bash | ||
run: | | ||
helm repo index . | ||
- name: Update URLs in index.yaml | ||
uses: mikefarah/[email protected] | ||
with: | ||
cmd: yq eval -i '. |= .entries[][] |= .urls[0] = "oci://" + env(REGISTRY) + "/" + .name + ":" + .version' index.yaml | ||
- name: Commit index.yaml to master branch | ||
uses: EndBug/[email protected] | ||
with: | ||
add: 'index.yaml' | ||
committer_name: GitHub Actions | ||
committer_email: [email protected] | ||
message: "$GITHUB_ACTION is updating index.yaml for $GITHUB_REF" |
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