Skip to content

Commit b90e389

Browse files
committed
test: cache-from
Signed-off-by: CrazyMax <[email protected]>
1 parent 67a2d40 commit b90e389

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

__tests__/context.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,27 @@ ANOTHER_SECRET=ANOTHER_SECRET_ENV`]
799799
'.'
800800
]
801801
],
802+
[
803+
34,
804+
'0.20.0',
805+
new Map<string, string>([
806+
['cache-from', `type=gha
807+
type=registry,ref=foo/bar:cache`],
808+
['load', 'false'],
809+
['no-cache', 'false'],
810+
['push', 'false'],
811+
['pull', 'false'],
812+
]),
813+
[
814+
'build',
815+
'--cache-from', 'type=gha',
816+
'--cache-from', 'type=registry,ref=foo/bar:cache',
817+
'--iidfile', imageIDFilePath,
818+
'--attest', `type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
819+
'--metadata-file', metadataJson,
820+
'https://github.com/docker/build-push-action.git#refs/heads/master'
821+
]
822+
]
802823
])(
803824
'[%d] given %p with %p as inputs, returns %p',
804825
async (num: number, buildxVersion: string, inputs: Map<string, string>, expected: Array<string>) => {

0 commit comments

Comments
 (0)