4
0
mirror of https://github.com/docker/setup-qemu-action.git synced 2026-03-02 04:36:19 +08:00

feat: binfmt image local cached

This commit is contained in:
문성하
2025-02-02 21:15:42 +09:00
parent f30d974279
commit ee123d82a5
6 changed files with 106 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ describe('getInputs', () => {
image: 'docker.io/tonistiigi/binfmt:latest',
platforms: 'all',
cacheImage: true,
localCachePath: ''
} as context.Inputs
],
[
@@ -36,6 +37,7 @@ describe('getInputs', () => {
image: 'docker/binfmt:latest',
platforms: 'arm64,riscv64,arm',
cacheImage: false,
localCachePath: ''
} as context.Inputs
],
[
@@ -48,6 +50,21 @@ describe('getInputs', () => {
image: 'docker.io/tonistiigi/binfmt:latest',
platforms: 'arm64,riscv64,arm',
cacheImage: true,
localCachePath: ''
} as context.Inputs
],
[
3,
new Map<string, string>([
['platforms', 'arm64'],
['cache-image', 'false'],
['local-cache-path', '/tmp/cache'],
]),
{
image: 'docker.io/tonistiigi/binfmt:latest',
platforms: 'arm64',
cacheImage: false,
localCachePath: '/tmp/cache'
} as context.Inputs
]
])(