Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosting helm charts in github pages #687

Closed
3 tasks done
aramase opened this issue Aug 12, 2021 · 2 comments · Fixed by #693
Closed
3 tasks done

Hosting helm charts in github pages #687

aramase opened this issue Aug 12, 2021 · 2 comments · Fixed by #693
Assignees
Labels
helm Helm charts kind/feature Categorizes issue or PR as related to a new feature.

Comments

@aramase
Copy link
Member

aramase commented Aug 12, 2021

  • Hosting in github pages will give us the flexibility to publish charts from release branches
  • Automate the packaging and publish of helm charts using github actions.

Things to do:

@aramase aramase added kind/feature Categorizes issue or PR as related to a new feature. helm Helm charts labels Aug 12, 2021
@aramase
Copy link
Member Author

aramase commented Aug 17, 2021

Tried this out on my fork and it works well!

  1. Create the gh-pages branch with existing charts directory

    1. Create the gh-pages orphan branch
     git checkout --orphan gh-pages
     cp -r charts/ /tmp/charts
     git rm -rf .
     cp -r /tmp/charts .
     rm -rf charts/secrets-store-csi-driver
    1. Update the helm index with the new github pages url
    helm repo index charts/ --url https://aramase.github.io/secrets-store-csi-driver/charts
    1. Push changes to the branch
     git push origin gh-pages

    With this push , all the existing helm releases will now be available on https://aramase.github.io/secrets-store-csi-driver/charts. To confirm, check https://aramase.github.io/secrets-store-csi-driver/charts/index.yaml.

  2. Add a workflow for the github action: https://github.com/stefanprodan/helm-gh-pages. This will publish new helm charts to gh-pages when the version is bumped: https://github.com/aramase/secrets-store-csi-driver/tree/chart-workflow

Sample actions run: https://github.com/aramase/secrets-store-csi-driver/actions/runs/1140851369

@aramase
Copy link
Member Author

aramase commented Aug 17, 2021

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helm Helm charts kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant