File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ choco install -y jq
22
33$image = " mcr.microsoft.com/windows/nanoserver"
44
5- Function PullTagPush ($image , $tag ) {
5+ Function PullTag ($image , $tag ) {
66 Write-Output " Pulling ${image} :${tag} "
77 docker pull " ${image} :${tag} "
88 $osversion = $ (docker image inspect " ${image} :${tag} " | jq - r ' .[0].OsVersion' )
99 docker tag " ${image} :${tag} " " stefanscherer/nanoserver:$tag "
1010 docker tag " ${image} :${tag} " " stefanscherer/nanoserver:$osversion "
1111}
1212
13- PullTagPush $image " 1809"
14- PullTagPush $image " 1803"
13+ PullTag $image " 1809"
14+ PullTag $image " 1803"
Original file line number Diff line number Diff line change 11$image = " mcr.microsoft.com/windows/nanoserver"
22
3- Function PullTagPush ($image , $tag ) {
3+ Function Push ($image , $tag ) {
44 $osversion = $ (docker image inspect " ${image} :${tag} " | jq - r ' .[0].OsVersion' )
55 echo " Pushing stefanscherer/nanoserver:$tag "
66 docker push " stefanscherer/nanoserver:$tag "
You can’t perform that action at this time.
0 commit comments