.githash
Context
For all servers, healthcheck probe returns githash from code used to build images
During execution of CI pipelines a GIT_HASH var is injected into deployment:
kubectl set env deployment/proxy GIT_HASH=$CI_COMMIT_SHA -n staging
Code behind healthcheck probe returns this variable.
Problem
On production (pre-prod, prod namespaces), deployments are not driven by CI pipeline, but manually, by changing manually image's name.
So no GITLAB vars are injected and healthcheck probe cannot return git's hash!
Todo
- write git hash in a file (.githash) during docker build
- read githashserver config prop from .githash file content
Must refactor Docker image for all servers.
Services:
-
DE -
DLM -
DV -
SHARE -
SFS -
PROXY -
CONFIG
Edited by Nicolas Briemant