Added support to change how docker progress is output to console
This commit is contained in:
parent
503af68d07
commit
0d9792787e
1 changed files with 3 additions and 2 deletions
|
|
@ -38,12 +38,13 @@ param(
|
||||||
[string]$Dockerfile = "Dockerfile",
|
[string]$Dockerfile = "Dockerfile",
|
||||||
[switch]$SkipPush,
|
[switch]$SkipPush,
|
||||||
[switch]$SkipCache,
|
[switch]$SkipCache,
|
||||||
[switch]$OutputToDocker
|
[switch]$OutputToDocker,
|
||||||
|
[string]$BuildProgress="auto"
|
||||||
)
|
)
|
||||||
|
|
||||||
$imageName = "$($DockerAccount)/rdtclient"
|
$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) {
|
if (-Not $SkipPush.IsPresent) {
|
||||||
$dockerArgs += @("--push")
|
$dockerArgs += @("--push")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue