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-13 09:13:17 -07:00
committed by Sebastiaan van Stijn
parent f28d9cc929
commit 529b1e7ec7
+4
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()