From 52a53e2587e34d45b1d4a9b7b7d307ad51c5b0b0 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Fri, 30 Aug 2019 12:44:20 +0200 Subject: [PATCH] Fix docker inspect for dutimgVersion Signed-off-by: Stefan Scherer --- hack/ci/windows.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/ci/windows.ps1 b/hack/ci/windows.ps1 index dc2cd5246eed7..f7c6380b84e9d 100644 --- a/hack/ci/windows.ps1 +++ b/hack/ci/windows.ps1 @@ -725,7 +725,7 @@ Try { # Inspect the pulled or loaded image to get the version directly $ErrorActionPreference = "SilentlyContinue" - $dutimgVersion = $(&"$env:TEMP\binary\docker-$COMMITHASH" "-H=$($DASHH_CUT)" inspect $($env:WINDOWS_BASE_IMAGE) --format "{{.OsVersion}}") + $dutimgVersion = $(&"$env:TEMP\binary\docker-$COMMITHASH" "-H=$($DASHH_CUT)" inspect "$($env:WINDOWS_BASE_IMAGE):$env:WINDOWS_BASE_IMAGE_TAG" --format "{{.OsVersion}}") $ErrorActionPreference = "Stop" Write-Host -ForegroundColor Green $("INFO: Version of $($env:WINDOWS_BASE_IMAGE):$env:WINDOWS_BASE_IMAGE_TAG is '"+$dutimgVersion+"'") }