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
Automate Helm Release Process #2057
Comments
Hi @realshuting , I came across this GitHub action @helm/chart-releaser-action and thought would be useful for this scenario, but I noticed Kyverno's GitHub CI already makes use of this in the kyverno/.github/workflows/release.yaml Lines 179 to 182 in 3b06378
Ideally, shouldn't this action take care of automating the helm release? |
Yes @DarthBenro008 , we had this working before and it was broken at some point. Last time I tried investigating the issue but with no luck, so we switched to the manual release process. The difficult thing is how to test this action, we cannot really push a new Helm release to test that, it's better to test it locally or in some other private repo. |
@realshuting i think temporary testing in a new branch of a forked repo would workout, if not we could write a small bash script automation that can be called by the CI to release helm charts. I'd like to help in this investigation and see if we can use the chart-releaser-action to work 😃 |
Thanks @DarthBenro008, assigned! |
@DarthBenro008 @realshuting That chart releaser doesn't work with tags. This is what happens in Github Action:
This is a well known and frustrating "feature" of the official Helm releaser action. I ran into this on some of my projects and also had MetalLB developers run into it too. The solution is a different chart releaser, like this one: https://github.com/marketplace/actions/helm-publisher I use that on several of my projects where I release Helm charts to match the tag they are released against. Like here: https://github.com/OSC/k8-ldap-configmap/blob/main/.github/workflows/release.yaml#L48-L51. This one has served me well as I use the same chart version and release scheme as Kyverno. |
This is great @treydock, good to know! |
Fixes kyverno#2057 Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Fixes #2057 Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Is your feature request related to a problem? Please describe.
The Helm chart is published manually by uploading assets to
gh-pages
branch. It would good to automate this process in the CI workflow, any changes in the chart can then be picked up and published accordingly, see #2052 (comment).The text was updated successfully, but these errors were encountered: