Skip to content

Commit 4db5fcd

Browse files
ndeloofglours
authored andcommitted
fix bake uses selected builder
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent f14c15f commit 4db5fcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/compose/build_bake.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
244244
args = append(args, "--allow", "security.insecure")
245245
}
246246
}
247+
248+
if options.Builder != "" {
249+
args = append(args, "--builder", options.Builder)
250+
}
251+
247252
logrus.Debugf("Executing bake with args: %v", args)
248253

249254
cmd := exec.CommandContext(ctx, buildx.Path, args...)

0 commit comments

Comments
 (0)