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

include e2e builder launch time the complete request payload (#9)

This commit is contained in:
Aayush Shah 2024-09-26 17:50:25 -04:00 committed by GitHub
parent 828fa88525
commit cb07435230
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 8 deletions

View file

@ -1,6 +1,6 @@
import * as core from '@actions/core';
import { Inputs, sanitizeInputs } from './context';
import {Inputs, sanitizeInputs} from './context';
export const tmpDir = process.env['STATE_tmpDir'] || '';
export const inputs = process.env['STATE_inputs'] ? JSON.parse(process.env['STATE_inputs']) : undefined;
@ -11,6 +11,7 @@ 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 const blacksmithBuilderLaunchTime = process.env['STATE_blacksmithBuilderLaunchTime'] || '';
export function setTmpDir(tmpDir: string) {
core.saveState('tmpDir', tmpDir);
@ -32,6 +33,11 @@ export function setBlacksmithBuildTaskId(blacksmithBuildTaskId: string) {
core.saveState('blacksmithBuildTaskId', blacksmithBuildTaskId);
}
// setBlacksmithBuilderLaunchTime sets the time (in seconds) it took to launch the Blacksmith builder
export function setBlacksmithBuilderLaunchTime(blacksmithBuilderLaunchTime: string) {
core.saveState('blacksmithBuilderLaunchTime', blacksmithBuilderLaunchTime);
}
export function setBlacksmithClientKey(blacksmithClientKey: string) {
core.saveState('blacksmithClientKey', blacksmithClientKey);
}