Development of Nightly Builds contribute
Built each night on the Dev instance. The resulting package lives on the dev instance but is also pushed up to the Google Artifact Registry for Production workload consumption.
Development Tools
Helm OCI Registry Push Script
The scripts/helm_push_oci.sh
script is used to push Helm charts to the Google Artifact Registry. This script handles Vault authentication and pushing of Helm charts to our OCI-compatible registry.
Usage
./scripts/helm_push_oci.sh <helm_package_file>
Required Parameters
helm_package_file
: Path to the Helm chart package file to be pushed (e.g.,./gitlab-chart.tgz
)
Environment Variables
The script requires specific environment variables for Vault authentication:
VAULT_AUTH_PATH
: Vault authentication path (defaults todev-gitlab-org
)VAULT_AUTH_ROLE
: Vault authentication roleVAULT_SECRETS_PATH
: Path to the Vault secretsVAULT_ID_TOKEN
: JWT token for Vault authenticationENABLE_OCI_PUSH
: Must be set totrue
to enable pushing to the registry
Registry Details
The script pushes Helm charts to:
- Registry URL:
us-east1-docker.pkg.dev
- Registry Path:
gitlab-com-artifact-registry/gitlab-devel-chart
Process Overview
- Authenticates with Vault to obtain registry credentials
- Retrieves the service account key from Vault
- Logs into the Google Artifact Registry using the service account
- Pushes the specified Helm chart package to the OCI registry
- Provides detailed feedback about each operation’s success or failure
Note: This script is designed to run in CI/CD environments with proper Vault access and permissions.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support