From 4db5fcd569f29b0c2972635a1b6162e022a070f3 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 30 Jan 2025 13:24:42 +0100 Subject: [PATCH] fix bake uses selected builder Signed-off-by: Nicolas De Loof --- pkg/compose/build_bake.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/compose/build_bake.go b/pkg/compose/build_bake.go index aca6c747a..2a4c2be5d 100644 --- a/pkg/compose/build_bake.go +++ b/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...)