1
0
Fork 0
mirror of https://github.com/docker/setup-qemu-action.git synced 2024-12-22 23:02:30 +00:00
setup-qemu-action/src/context.ts

15 lines
348 B
TypeScript
Raw Normal View History

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'
};
}