Browse Source

apply BUILDKIT_PROGRESS value when building with bake

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 4 months ago
parent
commit
038ea8441a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pkg/compose/build_bake.go

+ 3 - 0
pkg/compose/build_bake.go

@@ -130,6 +130,9 @@ type buildStatus struct {
 func (s *composeService) doBuildBake(ctx context.Context, project *types.Project, serviceToBeBuild types.Services, options api.BuildOptions) (map[string]string, error) { //nolint:gocyclo
 	eg := errgroup.Group{}
 	ch := make(chan *client.SolveStatus)
+	if options.Progress == progress.ModeAuto {
+		options.Progress = os.Getenv("BUILDKIT_PROGRESS")
+	}
 	displayMode := progressui.DisplayMode(options.Progress)
 	out := options.Out
 	if out == nil {