From 71ab6c9eef001e215c5059b04d481b7ba7f3e3be Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:27:41 +0200 Subject: [PATCH] configure default builder export when no build.platforms defined Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/compose/build.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/compose/build.go b/pkg/compose/build.go index ca94bc55c..eb2f1b35b 100644 --- a/pkg/compose/build.go +++ b/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",