Create your own registry with GitHub
Use any OCI Helm registry (GHCR, Harbor, JFrog Artifactory, AWS ECR, Google Artifact Registry, etc.) with Ankra. This guide focuses on GitHub Container Registry (GHCR) as a free and accessible example.
Prerequisites
Before you begin, ensure you have:- A GitHub account
- Git installed on your machine
- Helm CLI installed (Installation guide)
- A GitHub Personal Access Token with
write:packagespermission
To create a Personal Access Token: Go to GitHub Settings > Developer settings > Personal access tokens > Generate new token, and select the
write:packages scope.Step 1: Set Up Your Repository
Create a new GitHub repository to host your Helm charts:- Go to GitHub and create a new repository (e.g.,
my-helm-charts) - Clone the repository locally:
Step 2: Create Your Helm Chart
Generate a new Helm chart or prepare an existing one:Step 3: Configure Your Chart
Edit theChart.yaml file to include proper metadata:
Step 4: Package Your Chart
Package your Helm chart into a.tgz file:
my-sparkly-app-1.0.0.tgz.
Step 5: Login to GHCR
Authenticate with GitHub Container Registry using your Personal Access Token:$GITHUB_TOKEN with your actual token and YOUR_USERNAME with your GitHub username.
Step 6: Push Your Chart
Push your packaged chart to GHCR:Step 7: Verify your registry
After pushing, your chart will be available at:Step 8: Add your registry to Ankra
Now that your chart is published, add your GHCR registry to Ankra:Create a registry credential
Go to Credentials → Add → Registry and enter your GitHub username and the Personal Access Token (with
read:packages scope). See Credentials for details.Add the registry
Go to the Charts page in the main navigation, click Manage Registries → Add, and enter:
- URL:
oci://ghcr.io/YOUR_USERNAME/helm-charts - Credential: the registry credential you just created
Use Your Chart in a Stack
Open the Stack Builder on any cluster, click + Add → Add-on, and search for your chart. Configure its values, connect any dependencies, and deploy.Next Steps
Helm Registries
Connect other registry types — Harbor, Artifactory, ECR, and more.
Stacks
Compose your charts with manifests and dependencies into reusable stacks.