1
0
Fork 0
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:
CrazyMax 2025-01-22 09:55:49 +01:00
parent 67a2d409c0
commit b90e389dd8
No known key found for this signature in database
GPG key ID: ADE44D8C9D44FBE4

View file

@ -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>) => {