瀏覽代碼

fix bake uses selected builder

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 10 月之前
父節點
當前提交
4db5fcd569
共有 1 個文件被更改,包括 5 次插入0 次删除
  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")
 		}
 	}
+
+	if options.Builder != "" {
+		args = append(args, "--builder", options.Builder)
+	}
+
 	logrus.Debugf("Executing bake with args: %v", args)
 
 	cmd := exec.CommandContext(ctx, buildx.Path, args...)