mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-23 08:26:38 +02:00
Add config input
Signed-off-by: Gabriel Martinez <gabrielmartinez@sisti.pt>
This commit is contained in:
parent
583a3147f8
commit
9b365965c1
5 changed files with 15 additions and 2 deletions
|
@ -12,6 +12,7 @@ export interface Inputs {
|
|||
install: boolean;
|
||||
use: boolean;
|
||||
endpoint: string;
|
||||
config: string;
|
||||
}
|
||||
|
||||
export async function getInputs(): Promise<Inputs> {
|
||||
|
@ -24,7 +25,8 @@ export async function getInputs(): Promise<Inputs> {
|
|||
'--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host',
|
||||
install: /true/i.test(core.getInput('install')),
|
||||
use: /true/i.test(core.getInput('use')),
|
||||
endpoint: core.getInput('endpoint')
|
||||
endpoint: core.getInput('endpoint'),
|
||||
config: core.getInput('config')
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,9 @@ async function run(): Promise<void> {
|
|||
if (inputs.endpoint) {
|
||||
createArgs.push(inputs.endpoint);
|
||||
}
|
||||
if (inputs.config) {
|
||||
createArgs.push('--config', inputs.config);
|
||||
}
|
||||
await exec.exec('docker', createArgs);
|
||||
core.endGroup();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue