workspace timestamp in workspace name

pull/437/head
Frostebite 2022-10-22 23:22:17 +01:00
parent 04c8b2bf77
commit 8e558941e5
3 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -3029,9 +3029,9 @@ class Kubernetes {
try {
cloud_runner_logger_1.default.log('Cloud Runner K8s workflow!');
// Setup
this.buildGuid = buildGuid;
this.secretName = `build-credentials-${buildGuid}`;
this.jobName = `unity-builder-job-${buildGuid}`;
this.buildGuid = buildGuid + Date.now();
this.secretName = `build-credentials-${this.buildGuid}`;
this.jobName = `unity-builder-job-${this.buildGuid}`;
this.containerName = `main`;
yield this.createSecret(secrets);
yield this.createNamespacedJob(commands, image, mountdir, workingdir, environment, secrets);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -109,9 +109,9 @@ class Kubernetes implements ProviderInterface {
CloudRunnerLogger.log('Cloud Runner K8s workflow!');
// Setup
this.buildGuid = buildGuid;
this.secretName = `build-credentials-${buildGuid}`;
this.jobName = `unity-builder-job-${buildGuid}`;
this.buildGuid = buildGuid + Date.now();
this.secretName = `build-credentials-${this.buildGuid}`;
this.jobName = `unity-builder-job-${this.buildGuid}`;
this.containerName = `main`;
await this.createSecret(secrets);
await this.createNamespacedJob(commands, image, mountdir, workingdir, environment, secrets);