This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
setup-qemu-action/src/context.ts

17 lines
434 B
TypeScript
Raw Normal View History

2025-06-05 13:08:51 +08:00
import * as core from '@actions/core';
import {Util} from '@docker/actions-toolkit/lib/util';
export interface Inputs {
image: string;
platforms: string;
cacheImage: boolean;
}
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')
};
}