Explorar o código

fix bake uses selected builder

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof hai 10 meses
pai
achega
4db5fcd569
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      pkg/compose/build_bake.go

+ 5 - 0
pkg/compose/build_bake.go

@@ -244,6 +244,11 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
 			args = append(args, "--allow", "security.insecure")
 			args = append(args, "--allow", "security.insecure")
 		}
 		}
 	}
 	}
+
+	if options.Builder != "" {
+		args = append(args, "--builder", options.Builder)
+	}
+
 	logrus.Debugf("Executing bake with args: %v", args)
 	logrus.Debugf("Executing bake with args: %v", args)
 
 
 	cmd := exec.CommandContext(ctx, buildx.Path, args...)
 	cmd := exec.CommandContext(ctx, buildx.Path, args...)