feat(helm): publish chart to OCI registry on release#3508
Merged
Conversation
Add OCI publishing step to the helm-release workflow so the chart is available at oci://ghcr.io/tektoncd/operator/charts/tekton-operator in addition to the existing GitHub Pages Helm repository. This enables Flux CD users to consume the chart via a HelmRepository with type: oci, avoiding the GitRepository workaround that exposes version: "devel" from the raw git source. Uses docker/login-action (SHA-pinned) for ghcr.io authentication and helm push for the OCI publish step. Adds packages: write permission to the job. Signed-off-by: Jawed khelil <jkhelil@redhat.com> Assisted-by: Claude Sonnet 4.6 (via Cursor) Co-authored-by: Cursor <cursoragent@cursor.com>
Member
Author
|
/release-note-none |
Member
Author
|
/kind misc |
vdemeester
approved these changes
Jun 18, 2026
vdemeester
left a comment
Member
There was a problem hiding this comment.
Make sense ! We'll want to make sure the oci repository is public after the first build, but I think it makes a lot of sense !
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Contributor
|
/lgtm |
Member
Author
|
/cherry-pick release-v0.80.x |
Contributor
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #3511 Please review and merge the cherry-pick PR. |
5 tasks
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.
Summary
helm-releaseworkflow so the Tekton Operator Helm chart is available atoci://ghcr.io/tektoncd/operator/charts/tekton-operatoron every release, in addition to the existing GitHub Pages Helm repository.packages: writepermission to the job.docker/login-action(SHA-pinned, consistent with repo security posture) forghcr.ioauthentication.Motivation
The chart is currently only distributed via
git+https://github.com/tektoncd/operator@charts?ref=main, which Flux CD'sHelmRepositorycannot consume (it requireshttps://index oroci://). Users forced to use aGitRepositorysource pointing to the git tag getversion: "devel"from the rawChart.yaml, which Flux rejects as invalid semver.Publishing to OCI allows Flux users to use the standard pattern:
Closes #3493
Test plan
release-v0.80.xv0.80.0tag to trigger the workflowhttps://github.com/orgs/tektoncd/packages/container/package/operator%2Fcharts%2Ftekton-operatorhelm pull oci://ghcr.io/tektoncd/operator/charts/tekton-operator --version 0.80.0succeedsHelmRepositorywithtype: ociinstalls successfullyMade with Cursor