build: fix quiet mode

We are using the quiet flag option and we are not taking
progress quiet mode into account

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-06-06 18:45:48 +02:00
parent 7cef021a8a
commit ab5f5e4169
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ func runBuild(dockerCli command.Cli, options buildOptions) (err error) {
return retErr
}
if options.quiet {
if progressMode == progress.PrinterModeQuiet {
fmt.Println(getImageID(resp.ExporterResponse))
}
if options.imageIDFile != "" {