From 0d9792787e8e521502b64f94557cf70b2ecc1dd4 Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Fri, 17 Mar 2023 08:05:32 -0400 Subject: [PATCH] Added support to change how docker progress is output to console --- docker-publish.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-publish.ps1 b/docker-publish.ps1 index 3e88b62..c5af570 100755 --- a/docker-publish.ps1 +++ b/docker-publish.ps1 @@ -38,12 +38,13 @@ param( [string]$Dockerfile = "Dockerfile", [switch]$SkipPush, [switch]$SkipCache, - [switch]$OutputToDocker + [switch]$OutputToDocker, + [string]$BuildProgress="auto" ) $imageName = "$($DockerAccount)/rdtclient" -$dockerArgs = @( "buildx", "build", "--network=default", "--platform", $Platforms, "--tag", "$($imageName):latest", "--file", $Dockerfile, "." ) +$dockerArgs = @( "buildx", "build", "--network=default", "--platform", $Platforms, "--progress=$BuildProgress", "--tag", "$($imageName):latest", "--file", $Dockerfile, "." ) if (-Not $SkipPush.IsPresent) { $dockerArgs += @("--push")