Repository navigation
feat(helm): publish the chart to ghcr on release - #28
Merged
Merged
Conversation
Roadmap Horizon 1 item 6, and the last literal TODO in the tree. The chart was complete but installed only from a repo checkout; it now publishes to oci://ghcr.io/fold-run/charts/fold on every release tag. The job gates rather than just packages. It lints and renders every ci/ value set before anything is pushed — a `helm install` from a registry has no checkout to inspect first, so publishing a chart that renders wrong is worse than not publishing. And it refuses to publish when the chart's appVersion does not name the tag being released: the chart deploys the gateway image by default (values.yaml ships `image.tag: ""`), so a mismatched pair would ship an install that silently runs a different version than the release it accompanied. That is the bug this repo just had — appVersion sat at v0.4.0 through v1.7.0 — now caught by machine rather than by memory. Publishing is also reachable by workflow_dispatch with a tag name. The chart versions independently of the gateway, so a chart-only fix must not require a gateway release to reach the registry; the dispatch checks out the named tag and publishes the chart exactly as that release shipped it. Binaries and images stay tag-triggered — they are immutable per release and have no reason to be republished. The chart version goes to 0.1.3 because a published OCI tag is immutable and v1.8.0's tag already carries 0.1.2: a backfill publish for v1.8.0 and the next release would otherwise be two different charts under one name. Chart.yaml's TODO becomes the rule it was waiting on. Verified locally: helm package produces fold-0.1.3.tgz carrying appVersion v1.8.0, and the gate's comparison refuses a v1.9.0 tag against it while admitting v1.8.0. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap Horizon 1 item 6 — and the last literal
TODOin the tree. The chart was complete but installed only from a repo checkout; it now publishes tooci://ghcr.io/fold-run/charts/foldon every release tag.The job gates, it doesn't just package
ci/value set before pushing. Ahelm installfrom a registry has no checkout to inspect first, so publishing a chart that renders wrong is worse than not publishing.appVersiondoesn't name the tag being released. The chart deploys the gateway image by default (values.yamlshipsimage.tag: ""), so a mismatched pair would ship an install that silently runs a different version than the release it accompanied. That is exactly the bug this repo just had —appVersionsat at v0.4.0 through v1.7.0 — now caught by machine rather than by memory.Chart-only publishing
Also reachable via
workflow_dispatchwith achart_tag. The chart versions independently of the gateway, so a chart-only fix must not require a gateway release to reach the registry; the dispatch checks out the named tag and publishes the chart exactly as that release shipped it. Binaries and images stay tag-triggered — immutable per release, no reason to republish.This also means v1.8.0's chart can be backfilled once this merges, rather than the registry sitting empty until the next release.
Version bump
Chart goes to 0.1.3. A published OCI tag is immutable and v1.8.0's tag already carries 0.1.2 — without this, a backfill for v1.8.0 and the next release would be two different charts under one name.
Chart.yaml's TODO is replaced by the rule it was waiting on.Verification
Docs updated: chart README and
docs/deploy.mdlead with the OCI install and explain the two version numbers; the release skill now reports all three jobs and documents the dispatch path.One thing to check after the first publish: GHCR packages are created private by default. If
charts/foldcomes out private, anonymoushelm installwill 401 until the package's visibility is set to public in the org's package settings — same one-time step the images needed.🤖 Generated with Claude Code