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 { try {
cloud_runner_logger_1.default.log('Cloud Runner K8s workflow!'); cloud_runner_logger_1.default.log('Cloud Runner K8s workflow!');
// Setup // Setup
this.buildGuid = buildGuid; this.buildGuid = buildGuid + Date.now();
this.secretName = `build-credentials-${buildGuid}`; this.secretName = `build-credentials-${this.buildGuid}`;
this.jobName = `unity-builder-job-${buildGuid}`; this.jobName = `unity-builder-job-${this.buildGuid}`;
this.containerName = `main`; this.containerName = `main`;
yield this.createSecret(secrets); yield this.createSecret(secrets);
yield this.createNamespacedJob(commands, image, mountdir, workingdir, environment, 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!'); CloudRunnerLogger.log('Cloud Runner K8s workflow!');
// Setup // Setup
this.buildGuid = buildGuid; this.buildGuid = buildGuid + Date.now();
this.secretName = `build-credentials-${buildGuid}`; this.secretName = `build-credentials-${this.buildGuid}`;
this.jobName = `unity-builder-job-${buildGuid}`; this.jobName = `unity-builder-job-${this.buildGuid}`;
this.containerName = `main`; this.containerName = `main`;
await this.createSecret(secrets); await this.createSecret(secrets);
await this.createNamespacedJob(commands, image, mountdir, workingdir, environment, secrets); await this.createNamespacedJob(commands, image, mountdir, workingdir, environment, secrets);