mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-23 08:26:38 +02:00
Rename endpoint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
48948ec5e2
commit
583e11daec
6 changed files with 12 additions and 12 deletions
|
@ -11,7 +11,7 @@ export interface Inputs {
|
|||
buildkitdFlags: string;
|
||||
install: boolean;
|
||||
use: boolean;
|
||||
context: string;
|
||||
endpoint: string;
|
||||
}
|
||||
|
||||
export async function getInputs(): Promise<Inputs> {
|
||||
|
@ -24,7 +24,7 @@ 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')),
|
||||
context: core.getInput('context')
|
||||
endpoint: core.getInput('endpoint')
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -42,8 +42,8 @@ async function run(): Promise<void> {
|
|||
if (inputs.use) {
|
||||
createArgs.push('--use');
|
||||
}
|
||||
if (inputs.context) {
|
||||
createArgs.push(inputs.context);
|
||||
if (inputs.endpoint) {
|
||||
createArgs.push(inputs.endpoint);
|
||||
}
|
||||
await exec.exec('docker', createArgs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue