mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-20 01:26:46 +00: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
|
@ -10,6 +10,7 @@ export interface Inputs {
|
|||
buildkitdFlags: string;
|
||||
install: boolean;
|
||||
use: boolean;
|
||||
context: string;
|
||||
}
|
||||
|
||||
export async function getInputs(): Promise<Inputs> {
|
||||
|
@ -21,7 +22,8 @@ export async function getInputs(): Promise<Inputs> {
|
|||
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