append nodes to builder support

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-09-19 11:34:47 +02:00
parent 95cb08cb26
commit 2dfca373f3
12 changed files with 249 additions and 14 deletions

13
src/nodes.ts Normal file
View File

@@ -0,0 +1,13 @@
import * as yaml from 'js-yaml';
export type Node = {
name?: string;
endpoint?: string;
'driver-opts'?: Array<string>;
'buildkitd-flags'?: string;
platforms?: string;
};
export function Parse(data: string): Node[] {
return yaml.load(data) as Node[];
}