ソースを参照

use output registry when push true and load to docker store if not

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 7 ヶ月 前
コミット
f6ddd6ae88
1 ファイル変更5 行追加1 行削除
  1. 5 1
      pkg/compose/build_bake.go

+ 5 - 1
pkg/compose/build_bake.go

@@ -205,7 +205,11 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
 		case len(service.Build.Platforms) > 1:
 			outputs = []string{fmt.Sprintf("type=image,push=%t", push)}
 		default:
-			outputs = []string{fmt.Sprintf("type=docker,load=true,push=%t", push)}
+			if push {
+				outputs = []string{"type=registry"}
+			} else {
+				outputs = []string{"type=docker"}
+			}
 		}
 
 		read = append(read, build.Context)