feat: publish container images and Helm chart to GHCR#1126
Open
andyzhangx wants to merge 12 commits into
Open
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx 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 |
ec3b3cb to
d29785d
Compare
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to publish the csi-driver-nfs Helm chart to GitHub Container Registry (GHCR) as an OCI artifact, enabling helm install oci://... consumption and release-driven publishing.
Changes:
- Introduces a new workflow triggered on GitHub Release publish and manual
workflow_dispatch. - Validates input/tag versioning and chart directory existence, then runs
helm lint. - Packages and pushes the chart to GHCR, then verifies it can be fetched via
helm show.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d29785d to
8d7627d
Compare
8d7627d to
54b7124
Compare
5e5c42e to
e469916
Compare
e469916 to
6b94f78
Compare
Reuse existing Makefile targets to ensure build flags (LDFLAGS, EXT_LDFLAGS with -static, -mod vendor) and output paths stay in sync with the project's canonical build.
…onal summary - Set DOCKER_CLI_EXPERIMENTAL=enabled for manifest commands - Use 'helm show chart' instead of grep for Chart.yaml version - Show success/failure status per section in job summary
…ir fallback - Source Go version from go.mod via setup-go's go-version-file - Add fallback to charts/latest/ when versioned chart dir not found
Member
Author
|
/hold |
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.
What
Add GitHub Actions workflow (
.github/workflows/publish-helm-oci.yaml) that builds multi-arch container images and publishes the Helm chart as an OCI artifact to GHCR.Published artifacts
ghcr.io/kubernetes-csi/nfsplugin:<version>(linux/amd64, arm64, arm/v7, ppc64le)oci://ghcr.io/kubernetes-csi/csi-driver-nfsTriggers
Automatic (on release)
When a GitHub Release is published with a
v*tag, the workflow automatically builds images, creates a multi-arch manifest, and pushes the Helm chart.Manual (workflow_dispatch)
Maintainers can manually trigger from the Actions tab by providing a version (e.g.,
v4.13.2). Useful for backfilling historical versions or re-publishing.Workflow structure
v<major>.<minor>.<patch>)docker buildx buildfor each arch (parallel)Install
Release note: