From 6cdfc4418410f3d7f57d3a565adbc6cc394817a9 Mon Sep 17 00:00:00 2001 From: Reece Dunham Date: Mon, 11 Mar 2019 17:38:38 -0400 Subject: [PATCH] Delete Docker manifest creation script (#9076) --- docker/createManifest.ps1 | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 docker/createManifest.ps1 diff --git a/docker/createManifest.ps1 b/docker/createManifest.ps1 deleted file mode 100644 index 1372637e44..0000000000 --- a/docker/createManifest.ps1 +++ /dev/null @@ -1,39 +0,0 @@ -# Used to create a container manifest. -# Prereq: you must login to $ContainerRegistery before running this script -# default scenarios is to build a `latest` tag which will point to the `ubuntu-16.04` tag for linux -# and the `windowsservercore` tag for windows -param( - [parameter(Mandatory)] - [string] - $ContainerRegistry, - - [ValidateNotNullOrEmpty()] - [ValidatePattern('^[abcdefghijklmnopqrstuvwxyz\-0123456789\.]+$')] - [string] - $ManifestTag = 'latest', - - [ValidateNotNullOrEmpty()] - [ValidatePattern('^[abcdefghijklmnopqrstuvwxyz\-0123456789\.]+$')] - [string] - $Image = 'powershell', - - [ValidateNotNullOrEmpty()] - [ValidatePattern('^[abcdefghijklmnopqrstuvwxyz\-0123456789\.]+$')] - [string[]] - $TagList = ('ubuntu-16.04', 'windowsservercore') -) - -$manifestList = @() -foreach($tag in $TagList) -{ - $manifestList += "$ContainerRegistry/${Image}:$tag" -} - -# Create the manifest -docker manifest create $ContainerRegistry/${Image}:$ManifestTag $manifestList - -# Inspect (print) the manifest -docker manifest inspect $ContainerRegistry/${Image}:$ManifestTag - -# push the manifest -docker manifest push --purge $ContainerRegistry/${Image}:$ManifestTag