feat: expose frontend through YAML public entry
Pipelines as Code CI / hwlab-web-probe-sentinel-nc01- Success

This commit is contained in:
Codex
2026-07-09 15:01:57 +02:00
parent 663e4a24fc
commit bc3264cc1b
3 changed files with 482 additions and 0 deletions
+14
View File
@@ -455,6 +455,20 @@ async function main(): Promise<void> {
return;
}
if (top === "frontend") {
const { runFrontendPublicExposureCommand } = await import("./src/frontend-public-exposure");
const result = await runFrontendPublicExposureCommand(readConfig(), args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
const config = readConfig();
const autoRemoteCiPublishPlan = autoRemoteCiPublishUserServiceDryRunPlan(config, args);
if (autoRemoteCiPublishPlan.enabled && autoRemoteCiPublishPlan.host !== null) {