mirror of
https://github.com/docker/build-push-action
synced 2024-11-14 15:21:41 +00:00
npm run format
Signed-off-by: Phred <fearphage@gmail.com>
This commit is contained in:
parent
af4fd4efb5
commit
9720455de9
2 changed files with 3 additions and 8 deletions
|
@ -644,7 +644,7 @@ describe('flagMap', () => {
|
|||
expect(results).toEqual([
|
||||
['--catpants', 'a'],
|
||||
['--catpants', 'b'],
|
||||
['--catpants', 'c'],
|
||||
['--catpants', 'c']
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -88,12 +88,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
|
|||
}
|
||||
|
||||
export async function getArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
|
||||
return [
|
||||
'buildx',
|
||||
...await getBuildArgs(inputs, defaultContext, buildxVersion),
|
||||
...await getCommonArgs(inputs),
|
||||
inputs.context,
|
||||
];
|
||||
return ['buildx', ...(await getBuildArgs(inputs, defaultContext, buildxVersion)), ...(await getCommonArgs(inputs)), inputs.context];
|
||||
}
|
||||
|
||||
async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
|
||||
|
@ -104,7 +99,7 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio
|
|||
...flagMap(inputs.labels, '--label'),
|
||||
...flagMap(inputs.outputs, '--output'),
|
||||
...flagMap(inputs.tags, '--tag'),
|
||||
...flagMap(inputs.ssh, '--ssh'),
|
||||
...flagMap(inputs.ssh, '--ssh')
|
||||
);
|
||||
|
||||
if (inputs.target) {
|
||||
|
|
Loading…
Reference in a new issue