How to create a public Helm chart repository with GitHub pages
Introduction
When you create a Helm chart, you need a repository to store the chart. so you can store Helm chart in GitHub pages.
Guide
Create a repository called helm-charts
and set Public
on GitHub
Clone source code
1 | git clone [email protected]:blackhorseya/helm-charts.git && cd helm-charts |
Write down README.md
1 | echo "# Kubernetes Helm Charts" > README.md |
Create a branch called gh-pages
, this is important
1 | git branch -b gh-pages |
Update GitHub pages setting, set Source
to gh-pages
branch.
Create GitHub action workflows mkdir -p .github/workflows
and touch .github/workflows/release.yml
1 | name: Release Charts |
Now, you can create your helm chart in charts
folder.
Usage
Create a new Helm chart
Create sample
Helm chart on main
branch.
1 | helm create charts/sample |
Add your repo
1 | helm repo add blackhorseya https://blackhorseya.github.io/helm-charts |
You can then run helm search repo blackhorseya
to see the charts.