[go: up one dir, main page]

Skip to content

neilkuan/vm-example-chart

Repository files navigation

vm-example-chart

Release Helm Charts pages-build-deployment

Use this chart

helm repo add vm-example-chart https://neilkuan.github.io/vm-example-chart/

Normal release

  • Clone this project
    • git clone https://github.com/neilkuan/vm-example-chart.git
  • Checkout new branch from main branch
    • git checkout -b feat-awesome-branch
  • make some magic 🪄
    • 🚨 🚨 🚨 do not forget update version in Chart.yaml 🚨 🚨 🚨
  • Review by DevOps Team
  • After merged , git tag version v?.?.? will trigger workflow release to gh-pages branch
    • git tag v?.?.? && git push origin v?.?.?

Local build chart

git checkout main
helm dependency build --skip-refresh

## make some magic 🚨 🚨 🚨 do not forget update version in Chart.yaml 🚨 🚨 🚨

Local package chart

## make some magic 🚨 🚨 🚨 do not forget update version in Chart.yaml 🚨 🚨 🚨

helm package .

Local release chart

git switch gh-pages

git pull origin gh-pages

rm -rf charts/

### Use none url 
helm repo index --url "" .

git add .

## 🚨 🚨 🚨 only need commit `index.yaml` and `vm-example-chart-x.x.x.tgz` 🚨 🚨 🚨
git status

git commit -a -m "release version"

git push origin gh-pages