Skip to content

GITHUB_TOKEN [source]

Suppose the helmwave.yml.tpl looks like

project: {{ env "CI_PROJECT_NAME" }}
version: 0.9.1


repositories:
  - name: your-private-git-repo-hosted-charts
    url: https://{{ env "GITHUB_TOKEN"}}@raw.githubusercontent.com/foo/bar/master/


.options: &options
  install: true
  namespace: {{ env "NS" }}


releases:
  - name: hello
    chart: foo/bar
    options:
      <<: *options

This command will render helmwave.yml.tpl to helmwave.yml

$ export NS=stage
$ export CI_PROJECT_NAME=my-project
$ export GITHUB_TOKEN=my-secret-token
$ helmwave yml
[๐Ÿ™ƒ aka INFO]: ๐Ÿ›  Your planfile is .helmwave/planfile
[๐Ÿ™ƒ aka INFO]: ๐Ÿ“„ Render file
        from: helmwave.yml.tpl
        to: helmwave.yml

Once applied, your helmwave.yml will look like

project: my-project
version: 0.9.1


repositories:
  - name: your-private-git-repo-hosted-charts
    url: https://my-secret-token@raw.githubusercontent.com/foo/bar/master/


.options: &options
  install: true
  namespace: stage


releases:
  - name: hello
    chart: foo/bar
    options:
      <<: *options