mirror of
https://github.com/docker/setup-qemu-action.git
synced 2025-05-14 23:12:49 +08:00
19 lines
521 B
TypeScript
19 lines
521 B
TypeScript
import * as core from '@actions/core';
|
|
import {Util} from '@docker/actions-toolkit/lib/util';
|
|
|
|
export interface Inputs {
|
|
image: string;
|
|
platforms: string;
|
|
cacheImage: boolean;
|
|
localCachePath: string;
|
|
}
|
|
|
|
export function getInputs(): Inputs {
|
|
return {
|
|
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
|
|
platforms: Util.getInputList('platforms').join(',') || 'all',
|
|
cacheImage: core.getBooleanInput('cache-image'),
|
|
localCachePath: core.getInput('local-cache-path') || ''
|
|
};
|
|
}
|