mirror of
https://gitea.com/docker/setup-buildx-action.git
synced 2024-11-22 09:29:34 +01:00
2dfca373f3
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
13 lines
266 B
TypeScript
13 lines
266 B
TypeScript
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[];
|
|
}
|