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;
|
2024-07-03 11:42:53 +02:00
|
|
|
cacheImage: boolean;
|
2022-10-08 18:39:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getInputs(): Inputs {
|
|
|
|
|
return {
|
2024-07-03 11:17:00 +02:00
|
|
|
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
|
2024-07-03 11:42:53 +02:00
|
|
|
platforms: Util.getInputList('platforms').join(',') || 'all',
|
|
|
|
|
cacheImage: core.getBooleanInput('cache-image')
|
2022-10-08 18:39:00 +02:00
|
|
|
};
|
|
|
|
|
}
|