diff --git a/.gitignore b/.gitignore index 0eb7757..379d0fc 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,7 @@ templates/ .env **/.env docker/.env + +# GitVersion (généré au build) +GitVersion.yml +GitVersion.Agent.yml diff --git a/GitVersion.Agent.yml b/GitVersion.Agent.yml deleted file mode 100644 index 7c8aff0..0000000 --- a/GitVersion.Agent.yml +++ /dev/null @@ -1,10 +0,0 @@ -# ═══════════════════════════════════════════════════════════════════════ -# 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 deleted file mode 100644 index 8598db4..0000000 --- a/GitVersion.yml +++ /dev/null @@ -1,9 +0,0 @@ -# ═══════════════════════════════════════════════════════════════════════ -# 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 789c507..40ee4d7 100644 --- a/src/Heimdall.Web/Program.cs +++ b/src/Heimdall.Web/Program.cs @@ -263,8 +263,9 @@ public partial class Program { foreach (var (key, value) in integrationDefaults) { // 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())) + // ignorant la casse pour que le check idempotent matche le stockage réel. + if (await groupDb.AppSettings.AnyAsync(s => + string.Equals(s.Key, key, StringComparison.OrdinalIgnoreCase))) continue; groupDb.AppSettings.Add(new Heimdall.Domain.Entities.AppSetting( key, value ?? string.Empty,