mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-28 15:26:42 +02:00
Add allow input
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
78a1e0d9a3
commit
01bd5c1fa9
6 changed files with 17 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue