From d29c39363bba800ba67bf06a4d59e53af6aa0ecf Mon Sep 17 00:00:00 2001 From: "Max T. Kristiansen" Date: Sat, 27 Jul 2024 19:51:21 +0200 Subject: [PATCH] ci: Swap branch conditional --- .build/Build.Docker.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/Build.Docker.cs b/.build/Build.Docker.cs index d0efaa9..fcc50c9 100644 --- a/.build/Build.Docker.cs +++ b/.build/Build.Docker.cs @@ -10,9 +10,9 @@ partial class Build : NukeBuild { private string DockerImage => $"ghcr.io/fetcharr/fetcharr"; - private string[] DockerVersionTags => GitVersion.BranchName.Equals("develop", StringComparison.InvariantCultureIgnoreCase) - ? ["develop", $"develop-{GitVersion.MajorMinorPatch}.{GitVersion.PreReleaseNumber}"] - : ["latest", $"{GitVersion.Major}", $"{GitVersion.Major}.{GitVersion.Minor}", $"{GitVersion.MajorMinorPatch}"]; + private string[] DockerVersionTags => GitVersion.BranchName.Equals("main", StringComparison.InvariantCultureIgnoreCase) + ? ["latest", $"{GitVersion.Major}", $"{GitVersion.Major}.{GitVersion.Minor}", $"{GitVersion.MajorMinorPatch}"] + : ["develop", $"develop-{GitVersion.MajorMinorPatch}.{GitVersion.PreReleaseNumber}"]; private string[] DockerImageTags => DockerVersionTags.Select(version => $"{DockerImage}:{version}").ToArray();