helm-release
helm-release copied to clipboard
Support for version tag to only have TAG without SHA
Currently, the when I merge to master/main branch, the tag for helm it generates is "0.2.0+70d13ed" while the git tag is just 0.2.0. Even when I specify helm release CHART -t 0.2.0
It still adds SHA at the end.
I know I can achieve that with using: helm release . --source helm --bump patch
But, I am trying to implement this in our CI/CD pipeline, which would use semantic-release plugin, and use the git tag that is generated from that commit. semantic-release plugin tag is generated automatically off the commit message, like "fix:" or "feat:". That way, I don't have to update the pipeline every time manually with major, minor, or patch (if I use --source helm).
I was wondering if there is a possibility to add an option/arg which would generate the Chart version without the SHA in git source, like it does when I use --source helm?
That's certainly possible. The +SHA
option is a valid semantic version convention.
A change could be made to this code base to supply an option to not output +SHA. Or you can use bash to strip off +SHA
and have your CI system use that logic.
One of the reasons I want use helm-release is because it automatically updates Charts.yaml and values.yaml with the new version. If I where going to use bash to remove the SHA, I might as well just use sed
to replace the values in Chart.yaml and values.yaml with the new TAG generated by semantic-release plugin.