Add allow input

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2020-08-16 07:07:06 +02:00
parent 78a1e0d9a3
commit 01bd5c1fa9
6 changed files with 17 additions and 0 deletions

View File

@ -8,6 +8,7 @@ export interface Inputs {
tags: string[];
pull: boolean;
target: string;
allow: string;
noCache: boolean;
builder: string;
platforms: string;
@ -27,6 +28,7 @@ export async function loadInputs(): Promise<Inputs> {
tags: await getInputList('tags'),
pull: /true/i.test(core.getInput('pull')),
target: core.getInput('target'),
allow: core.getInput('allow'),
noCache: /true/i.test(core.getInput('no-cache')),
builder: core.getInput('builder'),
platforms: core.getInput('platforms'),

View File

@ -42,6 +42,9 @@ async function run(): Promise<void> {
if (inputs.target) {
buildArgs.push('--target', inputs.target);
}
if (inputs.allow) {
buildArgs.push('--allow', inputs.allow);
}
if (inputs.noCache) {
buildArgs.push('--no-cache');
}