Преглед на файлове

configure default builder export when no build.platforms defined

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours преди 3 години
родител
ревизия
71ab6c9eef
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      pkg/compose/build.go

+ 6 - 0
pkg/compose/build.go

@@ -81,6 +81,12 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
 				Attrs: map[string]string{"ref": image},
 			})
 		}
+		buildOptions.Exports = []bclient.ExportEntry{{
+			Type: "docker",
+			Attrs: map[string]string{
+				"load": "true",
+			},
+		}}
 		if len(buildOptions.Platforms) > 1 {
 			buildOptions.Exports = []bclient.ExportEntry{{
 				Type:  "image",