Skip to content

Commit 8cd665a

Browse files
authored
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 <[email protected]>
1 parent 7c8e804 commit 8cd665a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/CI.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ jobs:
200200
Import-Module $modulePath -DisableNameChecking
201201
202202
$labels = Get-BcContainerImageLabels -imageName 'mcr.microsoft.com/businesscentral:ltsc2022'
203+
Write-Host "Set latest generic tag version to $($labels.tag)"
203204
Set-Content -Path (Join-Path $path 'LatestGenericTagVersion.txt') -value $labels.tag
204205
205206
$functionsToExport = (get-module -Name BcContainerHelper).ExportedFunctions.Keys | Sort-Object

.github/workflows/Release.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
$functionsToExport = (get-module -Name BcContainerHelper).ExportedFunctions.Keys | Sort-Object
6161
$aliasesToExport = (get-module -Name BcContainerHelper).ExportedAliases.Keys | Sort-Object
6262
63+
$labels = Get-BcContainerImageLabels -imageName 'mcr.microsoft.com/businesscentral:ltsc2022'
64+
Write-Host "Set latest generic tag version to $($labels.tag)"
65+
Set-Content -Path (Join-Path $path 'LatestGenericTagVersion.txt') -value $labels.tag
66+
6367
$releaseNotes = Get-Content -Path (Join-Path $path "ReleaseNotes.txt")
6468
$idx = $releaseNotes.IndexOf($version)
6569
if ($idx -lt 0) {

0 commit comments

Comments
 (0)