fix: route publish dry-run through remote control plane
This commit is contained in:
+11
-1
@@ -6,7 +6,7 @@ import { emitError, emitJson } from "./src/output";
|
||||
import { jobWithTail, listJobs, listJobsSummary, readJob, runJob } from "./src/jobs";
|
||||
import { checkHelp, parseCheckOptions, runChecks } from "./src/check";
|
||||
import { runSsh } from "./src/ssh";
|
||||
import { extractRemoteCliOptions, runRemoteCli } from "./src/remote";
|
||||
import { autoRemoteCiPublishUserServiceDryRunPlan, extractRemoteCliOptions, runRemoteCli } from "./src/remote";
|
||||
import { runMicroserviceCommand } from "./src/microservices";
|
||||
import { runCodeQueueCommand } from "./src/code-queue";
|
||||
import { runDecisionCenterCommand } from "./src/decision-center";
|
||||
@@ -199,6 +199,16 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
const config = readConfig();
|
||||
const autoRemoteCiPublishPlan = autoRemoteCiPublishUserServiceDryRunPlan(config, args);
|
||||
if (autoRemoteCiPublishPlan.enabled && autoRemoteCiPublishPlan.host !== null) {
|
||||
process.exitCode = await runRemoteCli({
|
||||
...remoteOptions,
|
||||
host: autoRemoteCiPublishPlan.host,
|
||||
transport: "frontend",
|
||||
args,
|
||||
}, config);
|
||||
return;
|
||||
}
|
||||
|
||||
if (top === "ssh") {
|
||||
const exitCode = await runSsh(config, sub ?? "", args.slice(2));
|
||||
|
||||
Reference in New Issue
Block a user