Skip to content

CI_ENVIRONMENT_NAME [source]

Project structure

.
โ”œโ”€โ”€ helmwave.yml.tpl
โ””โ”€โ”€ values
    โ”œโ”€โ”€ _.yml
    โ”œโ”€โ”€ prod.yml
    โ””โ”€โ”€ stage.yml

helmwave.yml.tpl

project: my-project
version: 0.1.6

releases:
  - name: my-release
    chart: my-chart-repo/{{ env "CI_PROJECT_NAME" }}
    values:
      # Default
      - values/_.yml
      # For specific ENVIRONMENT
      - values/{{ env "CI_ENVIRONMENT_NAME" }}.yml
    options:
      install: true
      namespace: {{ env "CI_ENVIRONMENT_NAME" }}

_.yml

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

podAnnotations:
  gitCommit: {{ requiredEnv "CI_COMMIT_SHORT_SHA" | quote }}

prod.yml

replicaCount: 6

stage.yml

replicaCount: 2