fix(ci): publish helm charts via forgejo api instead of github plugin #7
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-helm-publish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
helmjob ofrelease_on_mainfails on main since the last release run:Cause
helm plugin install https://github.com/chartmuseum/helm-pushclones the plugin repo withgitfrom inside the job container. The runner's in-container egress to github.com now returns an auth challenge, so git tries to prompt for credentials and dies on the missing TTY (exit 128). The plugin repo itself is public and fine — this is a runtime network dependency on github.com that the release pipeline shouldn't have at all.Fix
Drop the plugin (and the
helm repo addit required) and upload the packaged chart with a singlecurlto Forgejo's native chartmuseum-compatible endpoint — the same endpointcm-pushposts to under the hood, so publish behavior (incl. re-publishingv0.0.1from main) is unchanged:Applied to both
release_on_main.yamlandrelease_on_tag.yaml(tag workflow usesacidwaifu-${{ forgejo.ref_name }}.tgz); everything else (helm lint,helm package) is untouched. The endpoint was verified to exist on this instance (401 unauthenticated, not 404).No more github.com dependency at publish time — only
setup-helm(runner-side action fetch, still working) and your own Forgejo.Verification
main's chart (helm lint+helm packagepass, helm v3.16.4)