mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
The console bakes VITE_APP_VERSION into its bundle at build time, so a promote-by-retag image (which is retagged, never rebuilt) would keep reporting the rc version in the UI after promotion to stable. Inject the version at deploy time instead: the chart derives it from the console image tag (build-stamped vX.Y.Z, rewritten rc->stable on promotion by promote-rc.yaml) and writes it into the existing console config.json ConfigMap, which the SPA already fetches. App.tsx now prefers config.version and falls back to the baked VITE_APP_VERSION when absent (dev / non-version tags like :latest). Assisted-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>