Skip to content

Commit

Permalink
add ltsc tag
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Mar 13, 2024
1 parent 9e09ccd commit 9b35921
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 295 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/BuildMissingImages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
$webclient.Headers.Add('Accept', "application/json")
$neededBcTags = $serverCoreTags | ForEach-Object {
$osVersion = [System.Version](($webclient.DownloadString("https://mcr.microsoft.com/v2/dotnet/framework/runtime/manifests/4.8-windowsservercore-$_") | ConvertFrom-Json).history[0].v1Compatibility | ConvertFrom-Json)."os.version"
"$osVersion-$genericTag|mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-$_"
"$osVersion-$genericTag-24|mcr.microsoft.com/windows/servercore:$_"
"$osVersion-$genericTag-filesonly|mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-$_"
"$osVersion-$genericTag-24-filesonly|mcr.microsoft.com/windows/servercore:$_"
"$osVersion-$genericTag|mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-$_|$_"
"$osVersion-$genericTag-24|mcr.microsoft.com/windows/servercore:$_|$_"
"$osVersion-$genericTag-filesonly|mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-$_|$_"
"$osVersion-$genericTag-24-filesonly|mcr.microsoft.com/windows/servercore:$_|$_"
}
Write-Host "Needed Tags ($($neededBcTags.Count))"
$neededBcTags | ForEach-Object { Write-Host "- $_" }
Expand Down Expand Up @@ -114,6 +114,7 @@ jobs:
$filesonly = ('${{ matrix.tag }}' -like '*-filesonly|*')
$only24 = ('${{ matrix.tag }}' -like '*-24|*' -or '${{ matrix.tag }}' -like '*-24-filesonly|*')
$baseImage = '${{ matrix.tag }}'.split('|')[1]
$ltscTag = '${{ matrix.tag }}'.split('|')[2]
$rootPath = Get-Location
$dockerfile = Join-Path $rootPath "DOCKERFILE"
$strFilesOnly = ''
Expand All @@ -128,11 +129,13 @@ jobs:
$image = "my:$osversion-$genericTag$str24$strFilesOnly"
$newtags = @(
"$pushRegistry/public/businesscentral:$osversion$str24$strFilesonly-dev"
"$pushRegistry/public/businesscentral:$ltscTag$str24$strFilesonly-dev"
)
if ($pushToProd) {
$newtags += @(
"$pushRegistry/public/businesscentral:$osversion$str24$strFilesonly"
"$pushRegistry/public/businesscentral:$osversion-$genericTag$str24$strFilesonly"
"$pushRegistry/public/businesscentral:$osversion$str24$strFilesonly"
"$pushRegistry/public/businesscentral:$osversion-$genericTag$str24$strFilesonly"
"$pushRegistry/public/businesscentral:$ltscTag$str24$strFilesonly"
)
}
$newTags | out-host
Expand Down
142 changes: 0 additions & 142 deletions .github/workflows/CreateAgents.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/RemoveAgents.yaml

This file was deleted.

96 changes: 0 additions & 96 deletions .github/workflows/Test.yaml

This file was deleted.

0 comments on commit 9b35921

Please sign in to comment.