1
0
Fork 0
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:
Juan Jose Miño - TN 2021-10-15 13:34:07 -03:00 committed by GitHub
parent 3c51ad8357
commit bf14809ab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}