From 7974e33fc2073e8fa317f9ec5db33b712a62d2cd Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Thu, 16 Mar 2023 10:22:25 -0400 Subject: [PATCH] Fixed issue with the SkipCache parameter --- docker-publish.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-publish.ps1 b/docker-publish.ps1 index f66f38f..3e88b62 100755 --- a/docker-publish.ps1 +++ b/docker-publish.ps1 @@ -49,7 +49,7 @@ if (-Not $SkipPush.IsPresent) { $dockerArgs += @("--push") } -if (-Not $SkipCache.IsPresent) { +if ($SkipCache.IsPresent) { $dockerArgs += @("--no-cache") } @@ -65,4 +65,5 @@ $dockerArgs += @("--tag", "$($imageName):$($Version)" ) $dockerApps += @("--build-arg", "VERSION=$($Version)" ) Write-Host "Generating docker image $imageName for $Platforms" +Write-Host "Args: $dockerArgs" & docker $dockerArgs