diff --git a/nyxui/templates/deployment-front.yaml b/nyxui/templates/deployment-front.yaml index 0085804d1dc5f8ebaae87de93b4055313f33e136..6205979f172ffaedd929e9f85c1021d77800b067 100644 --- a/nyxui/templates/deployment-front.yaml +++ b/nyxui/templates/deployment-front.yaml @@ -34,7 +34,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.front.image.repository }}:{{ .Values.front.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.front.image.repository }}:{{ .Values.front.image.sha }}" imagePullPolicy: {{ .Values.front.image.pullPolicy }} ports: - name: http diff --git a/nyxui/values.yaml b/nyxui/values.yaml index cfb608982a79fa53ab5cca846b1a30894c6d272a..535e5750d602c60abd5e49dab05d0d5bd00ef11b 100644 --- a/nyxui/values.yaml +++ b/nyxui/values.yaml @@ -6,10 +6,9 @@ replicaCount: 1 front: image: - repository: registry-gitlab.pasteur.fr/nyx/nyxui.jl/front + repository: registry-gitlab.pasteur.fr/nyx/nyxui/front + sha: "" pullPolicy: Always - # Overrides the image tag whose default is the chart appVersion. - tag: "" service: targetPort: 8080 diff --git a/values-yaml.gotmpl b/values-yaml.gotmpl index df2c516be9a5e2fe3f1a5f04401c819253d74083..4d1bb857f67f6b3c836cc9b5c029953d085e126f 100644 --- a/values-yaml.gotmpl +++ b/values-yaml.gotmpl @@ -8,8 +8,7 @@ front: image: repository: {{ requiredEnv "IMAGE_URL" }} pullPolicy: {{ requiredEnv "IMAGE_POLICY" }} - # Overrides the image tag whose default is the chart appVersion. - tag: "" + sha: {{ requiredEnv "CI_COMMIT_SHORT_SHA" }} service: targetPort: {{ requiredEnv "SERVICE_TARGET_PORT" }}