Skip to content

feat(helm): publish the chart to ghcr on release - #28

Merged
blakebauman merged 1 commit into
mainfrom
feat/publish-chart
Aug 10, 2026
Merged

blakebauman merged 1 commit into
mainfrom
feat/publish-chart

Conversation

@blakebauman

Copy link
Copy Markdown
Member

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, it doesn't just package

  • Lints and renders every ci/ value set before pushing. A helm install from a registry has no checkout to inspect first, so publishing a chart that renders wrong is worse than not publishing.
  • Refuses to publish when appVersion doesn't 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 exactly the bug this repo just had — appVersion sat at v0.4.0 through v1.7.0 — now caught by machine rather than by memory.

Chart-only publishing

Also reachable via workflow_dispatch with a chart_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

$ helm package deploy/helm/fold        → fold-0.1.3.tgz (appVersion v1.8.0)
$ make helm-check                      → lint + 3 value sets + required-config guard
gate simulated both ways:
  TAG=v1.8.0 → publishes
  TAG=v1.9.0 → REFUSED (appVersion is v1.8.0)

Docs updated: chart README and docs/deploy.md lead 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/fold comes out private, anonymous helm install will 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

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]>
@blakebauman
blakebauman merged commit c289618 into main Aug 10, 2026
6 checks passed
@blakebauman
blakebauman deleted the feat/publish-chart branch August 11, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant