Skip to content

CI_COMMIT_SHORT_SHA [source]

deployment looks like that:

    ...
    metadata:  
      {{- with .Values.podAnnotations }}  
      annotations:  
        {{- toYaml . | nindent 8 }}  
      {{- end }}
    ...

Project Structure

.
β”œβ”€β”€ README.md
β”œβ”€β”€ 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

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

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