mirror of
https://github.com/docker/build-push-action.git
synced 2025-07-13 15:03:51 +00:00
Update context.ts
This commit is contained in:
parent
3c51ad8357
commit
bf14809ab7
@ -26,6 +26,7 @@ export interface Inputs {
|
|||||||
noCache: boolean;
|
noCache: boolean;
|
||||||
outputs: string[];
|
outputs: string[];
|
||||||
platforms: string[];
|
platforms: string[];
|
||||||
|
quiet: boolean;
|
||||||
pull: boolean;
|
pull: boolean;
|
||||||
push: boolean;
|
push: boolean;
|
||||||
secrets: string[];
|
secrets: string[];
|
||||||
@ -74,6 +75,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
|
|||||||
load: core.getBooleanInput('load'),
|
load: core.getBooleanInput('load'),
|
||||||
network: core.getInput('network'),
|
network: core.getInput('network'),
|
||||||
noCache: core.getBooleanInput('no-cache'),
|
noCache: core.getBooleanInput('no-cache'),
|
||||||
|
quiet: core.getBooleanInput('quiet'),
|
||||||
outputs: await getInputList('outputs', true),
|
outputs: await getInputList('outputs', true),
|
||||||
platforms: await getInputList('platforms'),
|
platforms: await getInputList('platforms'),
|
||||||
pull: core.getBooleanInput('pull'),
|
pull: core.getBooleanInput('pull'),
|
||||||
@ -153,6 +155,9 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio
|
|||||||
if (inputs.file) {
|
if (inputs.file) {
|
||||||
args.push('--file', inputs.file);
|
args.push('--file', inputs.file);
|
||||||
}
|
}
|
||||||
|
if (inputs.quiet) {
|
||||||
|
args.push('--quiet');
|
||||||
|
}
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user