2
0
Fork 0
mirror of https://code.forgejo.org/docker/setup-buildx-action.git synced 2025-09-17 18:26:56 +00:00
setup-buildx-action/src/nodes.ts

14 lines
266 B
TypeScript
Raw Normal View History

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[];
}