build: honor BUILDKIT_PROGRESS env config

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 8adcedd658)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Tibor Vass 2019-05-07 22:15:54 +00:00 committed by Sebastiaan van Stijn
parent f28d9cc929
commit 529b1e7ec7
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,10 @@ func runBuildBuildKit(dockerCli command.Cli, options buildOptions) error {
})
}
if v := os.Getenv("BUILDKIT_PROGRESS"); v != "" && options.progress == "auto" {
options.progress = v
}
eg.Go(func() error {
defer func() { // make sure the Status ends cleanly on build errors
s.Close()