-
Notifications
You must be signed in to change notification settings - Fork 154
/
Copy pathcreateAllManifests.ps1
44 lines (36 loc) · 1.65 KB
/
createAllManifests.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# script to create the Docker manifest lists
param (
[ValidateNotNullOrEmpty()]
[string]
$Registry = 'microsoft',
[ValidateSet('stable','preview','servicing')]
[Parameter(Mandatory)]
[string]
$Channel='stable'
)
$createScriptPath = Join-Path -Path $PSScriptRoot -ChildPath 'createManifest.ps1'
$latestStableUbuntu = "ubuntu-bionic"
$latestStableWscLtsc = "windowsservercore-latest"
$latestStableWsc1803 = "windowsservercore-1803"
$latestStableWsc1809 = "windowsservercore-1809"
$latestStableWsc1903 = "windowsservercore-1903"
$latestStableNano1803 = "nanoserver-1803"
$latestStableNano1809 = "nanoserver-1809"
$latestStableNano1903 = "nanoserver-1903"
$latestPreviewUbuntu = "preview-ubuntu-bionic"
$latestPreviewWscLtsc = "preview-windowsservercore-latest"
$latestPreviewWsc1803 = "preview-windowsservercore-1803"
$latestPreviewWsc1809 = "preview-windowsservercore-1809"
$latestPreviewWsc1903 = "preview-windowsservercore-1809"
switch ($Channel)
{
'preview' {
&$createScriptPath -ContainerRegistry $Registry -taglist $latestPreviewUbuntu, $latestPreviewWsc1903, $latestPreviewWscLtsc, $latestPreviewWsc1803, $latestPreviewWsc1809 -ManifestTag 'preview'
}
'stable' {
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableUbuntu, $latestStableWsc1903, $latestStableWscLtsc, $latestStableWsc1803, $latestStableWsc1809 -ManifestTag 'latest'
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableNano1903, $latestStableNano1803, $latestStableNano1809 -ManifestTag 'nanoserver'
}
}