1
0
Files
setup-qemu-action/src/context.ts
T

19 lines
497 B
TypeScript
Raw Normal View History

2022-10-08 18:39:00 +02:00
import * as core from '@actions/core';
2026-02-28 02:03:44 +01:00
import {Util} from '@docker/actions-toolkit/lib/util.js';
2022-10-08 18:39:00 +02:00
export interface Inputs {
image: string;
platforms: string;
2026-05-27 17:01:22 +02:00
reset: boolean;
cacheImage: boolean;
2022-10-08 18:39:00 +02:00
}
export function getInputs(): Inputs {
return {
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
platforms: Util.getInputList('platforms').join(',') || 'all',
2026-05-27 17:01:22 +02:00
reset: core.getBooleanInput('reset'),
cacheImage: core.getBooleanInput('cache-image')
2022-10-08 18:39:00 +02:00
};
}