Inject version info into built image via publish script.
Add /_status api endpoint with version info.
Add top nav dropdown entry for version info.
Add /status UI page for version info.
Screenshots
/_status page
/status page
Status info in development in top kebab menu.
Testing Instructions
Boot the app via RELEASE_TAG=1.0.0 GIT_COMMIT_HASH=0f8549e5da8ff9694f1b322382243fac63494275 dev up
Fixes https://yg-hpw.atlassian.net/browse/ELCC-47
Context
It is currently impossible to determine what version of the app is running in production. As demonstrated in the https://github.com/icefoganalytics/travel-authorization and https://github.com/icefoganalytics/internal-data-portal projects, it is possible to inject version information into the build environment.
Implementation
Inject version info into built image via publish script. Add /_status api endpoint with version info. Add top nav dropdown entry for version info. Add /status UI page for version info.
Screenshots
/_status page
/status page
Status info in development in top kebab menu.
Testing Instructions
RELEASE_TAG=1.0.0 GIT_COMMIT_HASH=0f8549e5da8ff9694f1b322382243fac63494275 dev up
Testing production build.
docker compose build --build-arg RELEASE_TAG=1.0.0 --build-arg GIT_COMMIT_HASH=0f8549e5da8ff9694f1b322382243fac63494275
docker compose up