Added support to change how docker progress is output to console

This commit is contained in:
Shawn Anderson 2023-03-17 08:05:32 -04:00
parent 503af68d07
commit 0d9792787e

View file

@ -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")