buildx: hadDockerExporter

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-01-23 23:58:13 +01:00
parent 14581244a3
commit 3c101c4aee
2 changed files with 42 additions and 5 deletions

View File

@@ -157,6 +157,10 @@ export class Buildx {
return Buildx.hasExporterType('tar', exporters);
}
public static hasDockerExporter(exporters: string[], load?: boolean): boolean {
return load ?? Buildx.hasExporterType('docker', exporters);
}
public static hasExporterType(name: string, exporters: string[]): boolean {
const records = parse(exporters.join(`\n`), {
delimiter: ',',