You can use an Artifactory local repository to push Helm charts using Helm OCI.
To upload a Helm chart to an Artifactory OCI registry:
In this example, you will upload a Helm Chart called helmpack to a Helm OCI local repository.
1. Create a local Helm OCI repository, say helm-oci-local, in the Artifactory
2. Log in to your Helm OCI client using the helm registry login command:
Make sure to replace the placeholder in bold with your own JFrog host domain.
helm registry login <YOUR_JFROG_DOMAIN>
For example:
$ helm registry login acme.jfrog.io Username: admin Password: Login Succeeded
3. Push the chart to the Helm OCI repository using the helm push command:
Make sure you add the oci:// prefix to the Artifactory repository URL to force the Helm chart to wrap the artifact as OCI.
Make sure to replace the placeholders in bold with your Helm chart .TGZ file, URL, and desired repository path.
helm push <HELM_CHART_TGZ_FILE> oci://<URL>/<REPOSITORY>For example:
$ helm push helmpack-0.2.0.tgz oci://acme.jfrog.io/helm-oci-local/mycharts Pushed: acme.jfrog.io/helm-oci-local/mycharts/helmpack:0.2.0
4. You can find the OCI image deployed in the local Helm OCI repository
5. You can install the same chart using the Helm OCI command.
Make sure to replace the placeholders in bold with your deployment name, domain name, and OCI image path.
helm install <DEPLOYMENT_NAME> oci://<YOUR_JFROG_DOMAIN>/<REPOSITORY_KEY>/<CHART_NAME>For example:
$ helm install helmpack-chart oci://acme.jfrog.io/helm-oci-local/mycharts/helmpack Pulled: acme.jfrog.io/helm-oci-local/mycharts/helmpack:0.2.0 Digest: sha256:a4afafcd46b2f346b7d2e428ef156adafdc5328cee2088efedd496bdf45850c0 NAME: helmpack-chart LAST DEPLOYED: Wed Nov 15 16:35:44 2023 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: CHART NAME: helmpack CHART VERSION: 0.2.0 APP VERSION: 2.4.57 ** Please be patient while the chart is being deployed **