From be667ce9b63603475970dc865a5809c26b30ce73 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Fri, 13 Mar 2026 16:20:24 +0100 Subject: [PATCH] Don't push Docker with naked version This PR updates the build process to not push Docker tags with naked version numbers, unless they are stable releases. For a canary version, it will be tagged `canary` and `2.2.0.105-canary`. For a stable version, it will be tagged with `stable`, `2.2.0.0-stable`, `2.2.0.0`, and `latest` This is done to make Duplicati releases more compatible with how other tools use version number tags. This fixes #6797 This fixes #6797 --- ReleaseBuilder/Build/Command.CreatePackage.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReleaseBuilder/Build/Command.CreatePackage.cs b/ReleaseBuilder/Build/Command.CreatePackage.cs index d9a7c4db9..7b7a3ef88 100644 --- a/ReleaseBuilder/Build/Command.CreatePackage.cs +++ b/ReleaseBuilder/Build/Command.CreatePackage.cs @@ -1588,9 +1588,12 @@ public static partial class Command // Copy in the run-as-user.sh script File.Copy(Path.Combine(resourcesDir, "run-as-user.sh"), Path.Combine(tmpbuild, "run-as-user.sh"), true); - var tags = new List { rtcfg.ReleaseInfo.Channel.ToString(), rtcfg.ReleaseInfo.Version.ToString(), $"{rtcfg.ReleaseInfo.Version}-{rtcfg.ReleaseInfo.Channel}" }; + var tags = new List { rtcfg.ReleaseInfo.Channel.ToString(), $"{rtcfg.ReleaseInfo.Version}-{rtcfg.ReleaseInfo.Channel}" }; if (rtcfg.ReleaseInfo.Channel == ReleaseChannel.Stable) + { + tags.Add(rtcfg.ReleaseInfo.Version.ToString()); tags.Add("latest"); + } if (!dockerArchs.Any()) continue;