Skip to content

Commit 038ea84

Browse files
committed
apply BUILDKIT_PROGRESS value when building with bake
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 9e98e61 commit 038ea84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/compose/build_bake.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ type buildStatus struct {
130130
func (s *composeService) doBuildBake(ctx context.Context, project *types.Project, serviceToBeBuild types.Services, options api.BuildOptions) (map[string]string, error) { //nolint:gocyclo
131131
eg := errgroup.Group{}
132132
ch := make(chan *client.SolveStatus)
133+
if options.Progress == progress.ModeAuto {
134+
options.Progress = os.Getenv("BUILDKIT_PROGRESS")
135+
}
133136
displayMode := progressui.DisplayMode(options.Progress)
134137
out := options.Out
135138
if out == nil {

0 commit comments

Comments
 (0)