ci: publish helm chart to ghcr.io on chart/* tag#233
Conversation
Adds a publish-chart job to release.yml that fires when a chart/v* tag is pushed: verifies the tag matches chart/Chart.yaml, packages the chart, and pushes it as an OCI artifact to ghcr.io/nvidia/nodewright/charts using the workflow's GITHUB_TOKEN. Documents the new install path in docs/release-process.md. Signed-off-by: Alex Yuskauskas <[email protected]>
📝 WalkthroughWalkthroughThis PR introduces automated Helm chart publishing to the release workflow. A new CI job triggers on Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@chart/Chart.yaml`:
- Line 8: Update the Chart.yaml version entry to remove the temporary prerelease
suffix so the chart in main reflects the intended release version: replace the
current "version: v0.15.1-test.1" value with the final semantic version (e.g.,
"v0.15.1" or the appropriate release bump) so the test artifact isn’t
published/consumed as the canonical chart.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 27e1ede0-abe3-47e9-86d0-f49420f90b42
📒 Files selected for processing (3)
.github/workflows/release.ymlchart/Chart.yamldocs/release-process.md
|
Verified it works: |
fb93ebb to
a24d468
Compare
Coverage Report for CI Build 25832291011Warning No base build found for commit Coverage: 81.905%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Summary
publish-chartjob to.github/workflows/release.ymlthat fires when achart/v*tag is pushed, verifies the tag matcheschart/Chart.yaml, packages the chart, and pushes it as an OCI artifact toghcr.io/nvidia/nodewright/chartsusing the workflow'sGITHUB_TOKEN(grantedpackages: write).docs/release-process.md. No nvcr.io/NGC changes — the existing docs claim there remains aspirational for those targets.Test plan
chart/Chart.yamlto a throwaway version (e.g.v0.15.1-test.1) on a test branch, push a matchingchart/v0.15.1-test.1tag, and confirm thepublish-chartjob runs and the artifact appears underghcr.io/nvidia/nodewright/charts/skyhook-operator.helm pull oci://ghcr.io/nvidia/nodewright/charts/skyhook-operator --version <test-version>succeeds from a logged-in client.Notes
skyhook-operator(chart hasn't been renamed yet); the OCI artifact name follows.v-prefixed version used inChart.yaml. If downstream tools (ArgoCD, Flux) push back on this, the prefix can be dropped in a follow-up.