Update generated content

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-08-13 10:43:24 +02:00
parent 8f0f662386
commit 46bf3297bf
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

24
setup-buildx/dist/index.js generated vendored
View File

@ -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);
} }