fix(deploy): publish device plane loopback health
This commit is contained in:
@@ -18,6 +18,10 @@ import { fileURLToPath } from "node:url";
|
||||
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
||||
const platformRoot = resolve(scriptDir, "../..");
|
||||
const sourceRoot = resolve(platformRoot, "device-plane");
|
||||
const failedFoundationCompose = resolve(
|
||||
scriptDir,
|
||||
"fixtures/device-plane-foundation-internal-only-v1.yml",
|
||||
);
|
||||
const artifactDir = resolve(
|
||||
process.env.NODEDC_DEPLOY_ARTIFACT_DIR
|
||||
|| resolve(scriptDir, "../deploy-artifacts"),
|
||||
@@ -54,8 +58,14 @@ await assertSourceBoundary();
|
||||
try {
|
||||
await mkdir(payload, { recursive: true });
|
||||
for (const sourceRelative of files) {
|
||||
const source = (
|
||||
patchId === "device-plane-foundation-20260725-001"
|
||||
&& sourceRelative === "docker-compose.device-plane.yml"
|
||||
)
|
||||
? failedFoundationCompose
|
||||
: resolve(sourceRoot, sourceRelative);
|
||||
await copySafe(
|
||||
resolve(sourceRoot, sourceRelative),
|
||||
source,
|
||||
join(payload, sourceRelative),
|
||||
);
|
||||
}
|
||||
@@ -109,8 +119,11 @@ try {
|
||||
}
|
||||
|
||||
async function assertSourceBoundary() {
|
||||
const composeSource = patchId === "device-plane-foundation-20260725-001"
|
||||
? failedFoundationCompose
|
||||
: resolve(sourceRoot, "docker-compose.device-plane.yml");
|
||||
const compose = await readFile(
|
||||
resolve(sourceRoot, "docker-compose.device-plane.yml"),
|
||||
composeSource,
|
||||
"utf8",
|
||||
);
|
||||
for (const fragment of [
|
||||
|
||||
Reference in New Issue
Block a user