Skip to content

Commit b5230a6

Browse files
committed
Rename functions
1 parent 551555d commit b5230a6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

nanoserver/build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

nanoserver/push.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"

0 commit comments

Comments
 (0)