Skip to content

Commit c933000

Browse files
committed
test: build-arg with hash
Signed-off-by: CrazyMax <[email protected]>
1 parent dac08d4 commit c933000

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

__tests__/context.test.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,26 @@ nproc=3`],
599599
'.'
600600
]
601601
],
602+
[
603+
25,
604+
'0.10.0',
605+
new Map<string, string>([
606+
['context', '.'],
607+
['build-args', `FOO=bar#baz`],
608+
['load', 'true'],
609+
['no-cache', 'false'],
610+
['push', 'false'],
611+
['pull', 'false'],
612+
]),
613+
[
614+
'build',
615+
'--build-arg', 'FOO=bar#baz',
616+
'--iidfile', path.join(tmpDir, 'iidfile'),
617+
'--load',
618+
'--metadata-file', path.join(tmpDir, 'metadata-file'),
619+
'.'
620+
]
621+
],
602622
])(
603623
'[%d] given %p with %p as inputs, returns %p',
604624
async (num: number, buildxVersion: string, inputs: Map<string, string>, expected: Array<string>) => {

0 commit comments

Comments
 (0)