You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
437 B
TypeScript
17 lines
437 B
TypeScript
import * as core from '@actions/core';
|
|
import {Util} from '@docker/actions-toolkit/lib/util.js';
|
|
|
|
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')
|
|
};
|
|
}
|