Przeglądaj źródła

fix bake uses selected builder

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 10 miesięcy temu
rodzic
commit
4db5fcd569
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      pkg/compose/build_bake.go

+ 5 - 0
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...)