mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-19 17:27:12 +02:00
Add allow input
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -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'),
|
||||
|
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user