-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use image tag for app version #486
Conversation
e01429a
to
5292e59
Compare
5292e59
to
af602ad
Compare
af602ad
to
a68b493
Compare
a68b493
to
1ca0188
Compare
1ca0188
to
d68b462
Compare
d68b462
to
7c3a1a0
Compare
7c3a1a0
to
d3410f7
Compare
d3410f7
to
ab8752a
Compare
ab8752a
to
79a9f12
Compare
79a9f12
to
b9f09bf
Compare
@@ -51,6 +51,8 @@ spec: | |||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | |||
imagePullPolicy: {{ .Values.image.pullPolicy }} | |||
env: | |||
- name: APP_VERSION | |||
value: {{ .Values.image.tag }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unable to get the commit sha into the values.yaml
or <stage>.yaml
files. Neither the .Values.image.tag
or the github.sha
methods are available there. But I think it's fine here because it doesn't change per env anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of interest, where is this env var used, is it for the app to knows its own version? I'm a bit confused about what this PR tries to achieve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - I've updated the description. It follows on from this PR #483
Follows on from #483
Fixes the
APP_VERSION
env var so that it is:deployment.yaml
fileIMAGE_TAG
used in the docker build and push step