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