Pārlūkot izejas kodu

apply BUILDKIT_PROGRESS value when building with bake

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 5 mēneši atpakaļ
vecāks
revīzija
038ea8441a
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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 {