add push to oci registries#622
Open
monotek wants to merge 1 commit into
Open
Conversation
Signed-off-by: André Bauer <monotek23@gmail.com>
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.
add push to oci registries
Closes #183.
Adds a new
cr pushcommand that uploads every chart package in--package-pathto an OCI registry. Built on top of
helm.sh/helm/v3/pkg/action.NewPushWithOpts— the same code path the
helm pushCLI uses — so behavior, auth handling, andprovenance support stay in lockstep with Helm.
This is an independent distribution channel:
cr pushdoes not touch thegh-pages branch, the
index.yaml, or GitHub Releases. Users can run OCI-onlyor dual-publish alongside
cr upload.What's new
cr pushcommand. Iterates*.tgzfiles under--package-pathandpushes each to
<registry-url>/<chart-name>:<chart-version>. Sibling*.tgz.provfiles (fromcr package --sign) are picked up automatically.--username/--passwordflags (alsoCR_USERNAME/CR_PASSWORDvia the existing viper env-binding); falls back to theregistry credential store (
~/.docker/config.json, populated byhelm registry loginordocker login).--plain-http,--insecure-skip-tls-verify,--ca-file,--cert-file,--key-file.--skip-existingresolves each chart's OCI refagainst the registry and skips ones already present. Mirrors
cr upload --skip-existingsemantics. Default is off (matcheshelm push).oci://prefix on--registry-urlanderrors out with a helpful message otherwise.
Usage
Follow up
chart-release-action update: helm/chart-releaser-action#234