mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-01 20:50:09 +02:00
Update context.ts
This commit is contained in:
parent
3c51ad8357
commit
bf14809ab7
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,7 @@ export interface Inputs {
|
|||
noCache: boolean;
|
||||
outputs: string[];
|
||||
platforms: string[];
|
||||
quiet: boolean;
|
||||
pull: boolean;
|
||||
push: boolean;
|
||||
secrets: string[];
|
||||
|
@ -74,6 +75,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
|
|||
load: core.getBooleanInput('load'),
|
||||
network: core.getInput('network'),
|
||||
noCache: core.getBooleanInput('no-cache'),
|
||||
quiet: core.getBooleanInput('quiet'),
|
||||
outputs: await getInputList('outputs', true),
|
||||
platforms: await getInputList('platforms'),
|
||||
pull: core.getBooleanInput('pull'),
|
||||
|
@ -153,6 +155,9 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio
|
|||
if (inputs.file) {
|
||||
args.push('--file', inputs.file);
|
||||
}
|
||||
if (inputs.quiet) {
|
||||
args.push('--quiet');
|
||||
}
|
||||
return args;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue