Canvas: Process pre-build commands
Change-Id: I236f154c430b9ea29a4e0e491e1de27e78438440
diff --git a/apps/canvas/front/src/lib/config.ts b/apps/canvas/front/src/lib/config.ts
index f8d82ed..3eed93e 100644
--- a/apps/canvas/front/src/lib/config.ts
+++ b/apps/canvas/front/src/lib/config.ts
@@ -54,6 +54,7 @@
ingress?: Ingress[];
expose?: PortDomain[];
volume?: string[];
+ preBuildCommands?: string[];
};
export type Volume = {
@@ -123,6 +124,7 @@
auth: { enabled: false },
})),
expose: findExpose(n),
+ preBuildCommands: [n.data.preBuildCommands.split("\n").map((cmd) => ({ bin: cmd }))],
};
}),
volume: nodes.filter((n) => n.type === "volume").map((n): Volume => ({