feat: versionnement automatique basé sur git (build number + hash)

- build.rs génère version dynamique : X.Y.Z+build.N-abc1234
- Version injectée dans l'API (IMAGOD_BUILD_VERSION) et pages HTML
- Suffixe -dirty si modifications non commitées
- replace_all_versions() consomme le suffixe build metadata
- Suppression auto-changelog — reste manuel pour contrôle qualité
This commit is contained in:
2026-06-25 13:27:13 -04:00
parent e867dadb1f
commit 3254c33ae5
5 changed files with 79 additions and 13 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ async fn health_check() -> &'static str {
/// Retourne la version de l'application et des infos utiles
async fn version() -> Json<serde_json::Value> {
Json(serde_json::json!({
"version": env!("CARGO_PKG_VERSION"),
"version": env!("IMAGOD_BUILD_VERSION"),
"name": env!("CARGO_PKG_NAME"),
"description": env!("CARGO_PKG_DESCRIPTION"),
"repository": env!("CARGO_PKG_REPOSITORY"),