helm charts repository for github pages
After making changes to the Helm repo in Github. follow the steps below to update the published location of the Help Chart
helm repo index –url https://brettoj.github.io/helm-charts/ .
This guide outlines the steps to create a Helm chart repository and publish it using GitHub Pages.
Clone the repository to your local machine.
git clone git@github.com:USERNAME/REPO_NAME.git
Create a new Helm chart or use an existing one.
helm create my-chart
Modify the my-chart
directory to fit your application needs.
Package the Helm chart into a .tgz
file.
helm package my-chart
This will create a file like my-chart-0.1.0.tgz
.
index.yaml
FileInitialize the repository by creating an index.yaml
file.
helm repo index .
Add all files to your local git repository.
git add .
Commit the files.
git commit -m "Initial Helm Chart Repository"
Push the changes to GitHub.
git push origin main
main
or gh-pages
).Add the new chart repository to Helm.
helm repo add my-helm-repo https://USERNAME.github.io/REPO_NAME
Update Helm repositories.
helm repo update
Search for your Helm chart.
helm search repo my-helm-repo
Install the chart.
helm install my-release my-helm-repo/my-chart
Whenever you update a chart:
Repackage the chart.
helm package my-chart
Update index.yaml
file.
helm repo index --merge index.yaml .
Commit and push changes to GitHub.
You should now have a Helm chart repository hosted on GitHub Pages.