From 8cd665a71d1c57f302b38fe1feeebc4b7d730a4c Mon Sep 17 00:00:00 2001 From: Freddy Kristiansen Date: Tue, 17 Dec 2024 13:35:28 +0100 Subject: [PATCH] Set latest generic (#3786) Fixes #3778 Only the preview version of BcContainerHelper had the latest generic tag version stored in the module Co-authored-by: freddydk --- .github/workflows/CI.yaml | 1 + .github/workflows/Release.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 177d50cc8..aa0f28a97 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -200,6 +200,7 @@ jobs: Import-Module $modulePath -DisableNameChecking $labels = Get-BcContainerImageLabels -imageName 'mcr.microsoft.com/businesscentral:ltsc2022' + Write-Host "Set latest generic tag version to $($labels.tag)" Set-Content -Path (Join-Path $path 'LatestGenericTagVersion.txt') -value $labels.tag $functionsToExport = (get-module -Name BcContainerHelper).ExportedFunctions.Keys | Sort-Object diff --git a/.github/workflows/Release.yaml b/.github/workflows/Release.yaml index ce04a004c..8d0e79896 100644 --- a/.github/workflows/Release.yaml +++ b/.github/workflows/Release.yaml @@ -60,6 +60,10 @@ jobs: $functionsToExport = (get-module -Name BcContainerHelper).ExportedFunctions.Keys | Sort-Object $aliasesToExport = (get-module -Name BcContainerHelper).ExportedAliases.Keys | Sort-Object + $labels = Get-BcContainerImageLabels -imageName 'mcr.microsoft.com/businesscentral:ltsc2022' + Write-Host "Set latest generic tag version to $($labels.tag)" + Set-Content -Path (Join-Path $path 'LatestGenericTagVersion.txt') -value $labels.tag + $releaseNotes = Get-Content -Path (Join-Path $path "ReleaseNotes.txt") $idx = $releaseNotes.IndexOf($version) if ($idx -lt 0) {