I am pushing Docker images to our private registry via Jenkins with the following command:
def dockerImage = docker.build("repo/myapp:${env.BUILD_NUMBER}")
(BUILD_NUMBER
increases after every build.)
Because I am new to using Helm, I could not decide how should I give the tag for images in values.yaml
.
I would like to deploy my app to multiple environments such as:
dev
test
prod
Let's say I was able to deploy my app via Helm to dev
, and the latest BUILD_NUMBER
is:
- 100 for
dev
- 101 for
test
- 102 for
prod
What should be the tag value, then?
image:
repository: registryt/myrepo/image
tag: