Skip to content

Commit

Permalink
Set latest generic (#3786)
Browse files Browse the repository at this point in the history
Fixes #3778

Only the preview version of BcContainerHelper had the latest generic tag
version stored in the module

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Dec 17, 2024
1 parent 7c8e804 commit 8cd665a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8cd665a

Please sign in to comment.