1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-05-08 14:39:31 +02:00

src: add logic to report differently on success and failure

This commit is contained in:
Aditya Maru 2024-09-11 20:54:27 -04:00
parent 29a5593aa1
commit fca077e64d
4 changed files with 50 additions and 9 deletions

View file

@ -10,6 +10,7 @@ export const blacksmithBuildTaskId = process.env['STATE_blacksmithBuildTaskId']
export const blacksmithClientKey = process.env['STATE_blacksmithClientKey'] || '';
export const blacksmithClientCaCertificate = process.env['STATE_blacksmithClientCaCertificate'] || '';
export const blacksmithRootCaCertificate = process.env['STATE_blacksmithRootCaCertificate'] || '';
export const remoteDockerBuildStatus = process.env['STATE_remoteDockerBuildStatus'] || '';
export function setTmpDir(tmpDir: string) {
core.saveState('tmpDir', tmpDir);
@ -42,3 +43,7 @@ export function setBlacksmithClientCaCertificate(blacksmithClientCaCertificate:
export function setBlacksmithRootCaCertificate(blacksmithRootCaCertificate: string) {
core.saveState('blacksmithRootCaCertificate', blacksmithRootCaCertificate);
}
export function setRemoteDockerBuildStatus(remoteDockerBuildStatus: string) {
core.saveState('remoteDockerBuildStatus', remoteDockerBuildStatus);
}