Skip to content

Commit 489fe9c

Browse files
ndeloofglours
authored andcommitted
add support for BUILDKIT_PROGRESS
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent ef1931c commit 489fe9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/compose/build.go

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
129129
if options.Quiet {
130130
options.Progress = progress.ModeQuiet
131131
}
132+
if options.Progress == "" {
133+
options.Progress = os.Getenv("BUILDKIT_PROGRESS")
134+
}
132135
w, err = xprogress.NewPrinter(progressCtx, os.Stdout, progressui.DisplayMode(options.Progress),
133136
xprogress.WithDesc(
134137
fmt.Sprintf("building with %q instance using %s driver", b.Name, b.Driver),

0 commit comments

Comments
 (0)