mirror of
https://github.com/docker/setup-qemu-action
synced 2024-11-12 23:51:41 +00:00
df78eaf547
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
import * as core from '@actions/core';
|
|
import {Util} from '@docker/actions-toolkit/lib/util';
|
|
|
|
export interface Inputs {
|
|
image: string;
|
|
platforms: string;
|
|
}
|
|
|
|
export function getInputs(): Inputs {
|
|
return {
|
|
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
|
platforms: Util.getInputList('platforms').join(',') || 'all'
|
|
};
|
|
}
|