diff --git a/GitVersion.Agent.yml b/GitVersion.Agent.yml new file mode 100644 index 0000000..7c8aff0 --- /dev/null +++ b/GitVersion.Agent.yml @@ -0,0 +1,10 @@ +# ═══════════════════════════════════════════════════════════════════════ +# GitVersion.Agent.yml — Version de l'AGENT (Heimdall.Agent, FFmpeg/YOLO) +# Tags de release : agent-v* (ex. agent-v1.0.0) +# Config séparée : cycle de release indépendant du central (tickets #95 #96 #97) +# Usage : dotnet-gitversion -config GitVersion.Agent.yml +# ═══════════════════════════════════════════════════════════════════════ +workflow: TrunkBased/preview1 +next-version: 1.0.0 +assembly-informational-format: '{MajorMinorPatch}+{BranchName}.{ShortSha}' +tag-prefix: 'agent-v' diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..8598db4 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,9 @@ +# ═══════════════════════════════════════════════════════════════════════ +# GitVersion.yml — Version du CENTRAL (Heimdall.Web / API + UI + Jobs) +# Tags de release : v* (ex. v1.0.0) +# L'agent utilise sa propre config : GitVersion.Agent.yml (tags agent-v*) +# ═══════════════════════════════════════════════════════════════════════ +workflow: TrunkBased/preview1 +next-version: 1.0.0 +assembly-informational-format: '{MajorMinorPatch}+{BranchName}.{ShortSha}' +tag-prefix: 'v' diff --git a/src/Heimdall.Web/Program.cs b/src/Heimdall.Web/Program.cs index 604b0dd..789c507 100644 --- a/src/Heimdall.Web/Program.cs +++ b/src/Heimdall.Web/Program.cs @@ -262,7 +262,9 @@ public partial class Program { }; foreach (var (key, value) in integrationDefaults) { - if (await groupDb.AppSettings.AnyAsync(s => s.Key == key)) + // Le constructeur AppSetting lower-case la clé — comparer en + // lowercase pour que le check idempotent matche le stockage réel. + if (await groupDb.AppSettings.AnyAsync(s => s.Key == key.ToLowerInvariant())) continue; groupDb.AppSettings.Add(new Heimdall.Domain.Entities.AppSetting( key, value ?? string.Empty,