mirror of
https://github.com/docker/setup-buildx-action.git
synced 2024-12-22 20:42:12 -05:00
8b13d483f2
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
32 lines
1,020 B
TypeScript
32 lines
1,020 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const IsDebug = !!process.env['STATE_isDebug'];
|
|
export const standalone = /true/i.test(process.env['STATE_standalone'] || '');
|
|
export const builderName = process.env['STATE_builderName'] || '';
|
|
export const containerName = process.env['STATE_containerName'] || '';
|
|
export const certsDir = process.env['STATE_certsDir'] || '';
|
|
export const cleanup = /true/i.test(process.env['STATE_cleanup'] || '');
|
|
|
|
export function setDebug(debug: string) {
|
|
core.saveState('isDebug', debug);
|
|
}
|
|
|
|
export function setStandalone(standalone: boolean) {
|
|
core.saveState('standalone', standalone);
|
|
}
|
|
|
|
export function setBuilderName(builderName: string) {
|
|
core.saveState('builderName', builderName);
|
|
}
|
|
|
|
export function setContainerName(containerName: string) {
|
|
core.saveState('containerName', containerName);
|
|
}
|
|
|
|
export function setCertsDir(certsDir: string) {
|
|
core.saveState('certsDir', certsDir);
|
|
}
|
|
|
|
export function setCleanup(cleanup: boolean) {
|
|
core.saveState('cleanup', cleanup);
|
|
}
|