mirror of
https://github.com/docker/setup-buildx-action
synced 2024-11-22 11:01:42 +00:00
3472856dd9
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
27 lines
800 B
TypeScript
27 lines
800 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const IsPost = !!process.env['STATE_isPost'];
|
|
export const IsDebug = !!process.env['STATE_isDebug'];
|
|
export const standalone = process.env['STATE_standalone'] || '';
|
|
export const builderName = process.env['STATE_builderName'] || '';
|
|
export const containerName = process.env['STATE_containerName'] || '';
|
|
|
|
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);
|
|
}
|
|
|
|
if (!IsPost) {
|
|
core.saveState('isPost', 'true');
|
|
}
|