mirror of
https://github.com/docker/build-push-action
synced 2024-11-26 20:11:40 +00:00
Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
8f0f662386
commit
46bf3297bf
1 changed files with 12 additions and 12 deletions
24
setup-buildx/dist/index.js
generated
vendored
24
setup-buildx/dist/index.js
generated
vendored
|
@ -2489,14 +2489,14 @@ function run() {
|
||||||
core.setFailed('Only supported on linux platform');
|
core.setFailed('Only supported on linux platform');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const buildxVer = core.getInput('buildx-version');
|
const bxVersion = core.getInput('version');
|
||||||
const driver = core.getInput('driver') || 'docker-container';
|
const bxDriver = core.getInput('driver') || 'docker-container';
|
||||||
const driverOpt = core.getInput('driver-opt');
|
const bxDriverOpt = core.getInput('driver-opt');
|
||||||
const install = /true/i.test(core.getInput('install'));
|
const bxInstall = /true/i.test(core.getInput('install'));
|
||||||
const use = /true/i.test(core.getInput('use'));
|
const bxUse = /true/i.test(core.getInput('use'));
|
||||||
const dockerConfigHome = process.env.DOCKER_CONFIG || path.join(os.homedir(), '.docker');
|
const dockerConfigHome = process.env.DOCKER_CONFIG || path.join(os.homedir(), '.docker');
|
||||||
if (!(yield buildx.isAvailable()) || buildxVer) {
|
if (!(yield buildx.isAvailable()) || bxVersion) {
|
||||||
yield buildx.install(buildxVer || 'latest', dockerConfigHome);
|
yield buildx.install(bxVersion || 'latest', dockerConfigHome);
|
||||||
}
|
}
|
||||||
core.info('📣 Buildx info');
|
core.info('📣 Buildx info');
|
||||||
yield exec.exec('docker', ['buildx', 'version'], false);
|
yield exec.exec('docker', ['buildx', 'version'], false);
|
||||||
|
@ -2504,17 +2504,17 @@ function run() {
|
||||||
core.setOutput('name', builderName);
|
core.setOutput('name', builderName);
|
||||||
stateHelper.setBuilderName(builderName);
|
stateHelper.setBuilderName(builderName);
|
||||||
core.info('🔨 Creating a new builder instance...');
|
core.info('🔨 Creating a new builder instance...');
|
||||||
let createArgs = ['buildx', 'create', '--name', builderName, '--driver', driver];
|
let createArgs = ['buildx', 'create', '--name', builderName, '--driver', bxDriver];
|
||||||
if (driverOpt) {
|
if (bxDriverOpt) {
|
||||||
createArgs.push('--driver-opt', driverOpt);
|
createArgs.push('--driver-opt', bxDriverOpt);
|
||||||
}
|
}
|
||||||
if (use) {
|
if (bxUse) {
|
||||||
createArgs.push('--use');
|
createArgs.push('--use');
|
||||||
}
|
}
|
||||||
yield exec.exec('docker', createArgs, false);
|
yield exec.exec('docker', createArgs, false);
|
||||||
core.info('🏃 Booting builder...');
|
core.info('🏃 Booting builder...');
|
||||||
yield exec.exec('docker', ['buildx', 'inspect', '--bootstrap'], false);
|
yield exec.exec('docker', ['buildx', 'inspect', '--bootstrap'], false);
|
||||||
if (install) {
|
if (bxInstall) {
|
||||||
core.info('🤝 Setting buildx as default builder...');
|
core.info('🤝 Setting buildx as default builder...');
|
||||||
yield exec.exec('docker', ['buildx', 'install'], false);
|
yield exec.exec('docker', ['buildx', 'install'], false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue