helm_push.md

November 20, 2024 ยท View on GitHub

helm_push

helm_push(name, chart, repository_config, repository_name, repository_url)

Publish a helm chart produced by helm_chart rule to a remote registry.

To load the rule use:

load("//helm:defs.bzl", "helm_push")

This rule builds an executable. Use run instead of build to publish the chart.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
chartThe packaged chart archive to be published. It can be a reference to a helm_chart rule or a reference to a helm archived fileLabelrequired
repository_configThe repository config file. Used in conjunction with repository_name. It only works with oci repos by now.LabeloptionalNone
repository_nameThe name of the repository from the repository config file provided to this rule. You must provide a repository_config in order to use this as the name of the repository. It only works with oci repos by now.Stringoptional""
repository_urlThe remote url of the registry. Do not add the chart name to the url. If you provide repository_config and a repository_name attributes this field will be omitted.Stringoptional""