use default docker command line values for file when it is missing

Signed-off-by: Libo Zeng <libo@mabl.com>
This commit is contained in:
Libo Zeng 2020-12-18 10:05:47 -05:00
parent f2a733f179
commit a8587cb818
5 changed files with 3 additions and 12 deletions

View file

@ -57,7 +57,7 @@ export function tmpNameSync(options?: tmp.TmpNameOptions): string {
export async function getInputs(defaultContext: string): Promise<Inputs> {
return {
context: core.getInput('context') || defaultContext,
file: core.getInput('file') || 'Dockerfile',
file: core.getInput('file'),
buildArgs: await getInputList('build-args', true),
labels: await getInputList('labels', true),
tags: await getInputList('tags'),