Override the configured builder instance

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax committed 2021-01-04 19:04:04 +01:00
1 parent daf8c4fb8d
commit 0ddb9e80d4
4 files changed
+14 -6

No files matched your search

+5 -1
View File
@@ -52,7 +52,11 @@ async function run(): Promise<void> {
core.endGroup();
core.startGroup(`🏃 Booting builder`);
await exec.exec('docker', ['buildx', 'inspect', '--bootstrap']);
let bootstrapArgs: Array<string> = ['buildx', 'inspect', '--bootstrap'];
if (semver.satisfies(buildxVersion, '>=0.4.0')) {
bootstrapArgs.push('--builder', builderName);
}
await exec.exec('docker', bootstrapArgs);
core.endGroup();
}