Skip to content

CI_COMMIT_TAG [source]

Receipt

Suppose my-chart has default values.yaml:

image:
  repository: registry.gitlab.local/example/app
  tag: v1.0.0
...

Project Structure

.
β”œβ”€β”€ helmwave.yml.tpl
└── values.yml

helmwave.yml.tpl

project: my-project # Имя ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°
version: 0.1.6 # ВСрсия helmwave

releases:
  - name: my-release
    chart: my-chart-repo/my-app
    values:
      - values.yml
    options:
      install: true
      namespace: my-namespace

values.yml

This values will override default values

image:
  tag: {{ env "CI_COMMIT_TAG" }}

Deploy

helmwave deploy

CLI analog via helm3

helm upgrade --instal my-release my-chart-repo/my-app --set="image.tag=$CI_COMMIT_TAG" -n my-namespace