Skip to content

Private GitLab repo

Learn more about GitLab helm registry here

Project structure

docs/examples/private-github-repo
├── README.md
├── helmwave.yml
└── helmwave.yml.tpl

0 directories, 3 files
helmwave.yml.tpl
project: "Example: gitlab private repo"
version: "0.35.1"

repositories:
  # Docs: https://docs.gitlab.com/ee/user/packages/helm_repository/
  - url: {{ env "CI_API_V4_URL" }}/projects/{{env "CI_PROJECT_ID" }}/packages/helm/stable
    name: {{ env "CI_PROJECT_TITLE" }}
    username: gitlab-ci-token
    password: {{ env "CI_JOB_TOKEN" }}


releases:
  - name: hello
    chart: {{ env "CI_PROJECT_TITLE" }}/my-chart
    namespace: test
    create_namespace: true
.gitlab-ci.yml
helmwave:
  stage: deploy
  image:
    name: ghcr.io/helmwave/helmwave:0.35.1
    entrypoint: [""]
  before_script:
    - printenv | grep HELMWAVE
  script:
    - helmwave yml
    - helmwave build
    - helmwave up
  artifacts:
    paths:
      - .helmwave
    expire_in: 2 weeks