Interview Prep/Helm/Release Lifecycle, Repositories & OCI

How do you push a chart to GitHub Container Registry?

IntermediateConceptRelease Lifecycle, Repositories & OCI
Answer
echo "$GITHUB_TOKEN" | helm registry login ghcr.io -u "$GITHUB_ACTOR" --password-stdin
helm package ./shop
helm push shop-1.4.0.tgz oci://ghcr.io/devopsshack/charts
helm pull oci://ghcr.io/devopsshack/charts/shop --version 1.4.0

In GitHub Actions the workflow needs permissions: packages: write. The owner part must be lowercase. New packages are private by default; make them public or grant repository access in package settings.

All Helm questions Roadmap: Helm

More on Release Lifecycle, Repositories & OCI