forked from PowerShell/PowerShell-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateAllManifests.ps1
38 lines (31 loc) · 1.26 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
# Copyright (c) Microsoft Corporation.
# 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"
$latestStableWsc1809 = "windowsservercore-1809"
$latestStableWsc1903 = "windowsservercore-1903"
$latestStableNano1809 = "nanoserver-1809"
$latestStableNano1903 = "nanoserver-1903"
$latestPreviewUbuntu = "preview-ubuntu-bionic"
$latestPreviewWsc1809 = "preview-windowsservercore-1809"
$latestPreviewWsc1903 = "preview-windowsservercore-1809"
switch ($Channel)
{
'preview' {
&$createScriptPath -ContainerRegistry $Registry -taglist $latestPreviewUbuntu, $latestPreviewWsc1903, $latestPreviewWsc1809 -ManifestTag 'preview'
}
'stable' {
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableUbuntu, $latestStableWsc1903, $latestStableWsc1809 -ManifestTag 'latest'
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableNano1903, $latestStableNano1809 -ManifestTag 'nanoserver'
}
}