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...)