mirror of
https://github.com/docker/build-push-action.git
synced 2025-03-28 01:30:09 +01:00
test: cache-from
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
67a2d409c0
commit
b90e389dd8
1 changed files with 21 additions and 0 deletions
|
@ -799,6 +799,27 @@ ANOTHER_SECRET=ANOTHER_SECRET_ENV`]
|
|||
'.'
|
||||
]
|
||||
],
|
||||
[
|
||||
34,
|
||||
'0.20.0',
|
||||
new Map<string, string>([
|
||||
['cache-from', `type=gha
|
||||
type=registry,ref=foo/bar:cache`],
|
||||
['load', 'false'],
|
||||
['no-cache', 'false'],
|
||||
['push', 'false'],
|
||||
['pull', 'false'],
|
||||
]),
|
||||
[
|
||||
'build',
|
||||
'--cache-from', 'type=gha',
|
||||
'--cache-from', 'type=registry,ref=foo/bar:cache',
|
||||
'--iidfile', imageIDFilePath,
|
||||
'--attest', `type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--metadata-file', metadataJson,
|
||||
'https://github.com/docker/build-push-action.git#refs/heads/master'
|
||||
]
|
||||
]
|
||||
])(
|
||||
'[%d] given %p with %p as inputs, returns %p',
|
||||
async (num: number, buildxVersion: string, inputs: Map<string, string>, expected: Array<string>) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue