mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-06-22 19:07:59 +02:00
Override the configured builder instance
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user