mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-22 16:06:36 +02:00
Add context input (#16)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
54edbcd840
commit
1b18b1078f
5 changed files with 19 additions and 6 deletions
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
|
@ -534,6 +534,9 @@ function run() {
|
|||
if (inputs.use) {
|
||||
createArgs.push('--use');
|
||||
}
|
||||
if (inputs.context) {
|
||||
createArgs.push(inputs.context);
|
||||
}
|
||||
yield exec.exec('docker', createArgs);
|
||||
core.info('🏃 Booting builder...');
|
||||
yield exec.exec('docker', ['buildx', 'inspect', '--bootstrap']);
|
||||
|
@ -6553,7 +6556,8 @@ function getInputs() {
|
|||
buildkitdFlags: core.getInput('buildkitd-flags') ||
|
||||
'--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host',
|
||||
install: /true/i.test(core.getInput('install')),
|
||||
use: /true/i.test(core.getInput('use'))
|
||||
use: /true/i.test(core.getInput('use')),
|
||||
context: core.getInput('context')
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue