mirror of
https://github.com/docker/setup-qemu-action.git
synced 2026-06-04 16:08:42 +02:00
2ddad4401e
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
19 lines
497 B
TypeScript
19 lines
497 B
TypeScript
import * as core from '@actions/core';
|
|
import {Util} from '@docker/actions-toolkit/lib/util.js';
|
|
|
|
export interface Inputs {
|
|
image: string;
|
|
platforms: string;
|
|
reset: boolean;
|
|
cacheImage: boolean;
|
|
}
|
|
|
|
export function getInputs(): Inputs {
|
|
return {
|
|
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
|
|
platforms: Util.getInputList('platforms').join(',') || 'all',
|
|
reset: core.getBooleanInput('reset'),
|
|
cacheImage: core.getBooleanInput('cache-image')
|
|
};
|
|
}
|