Stream from k8s main container

pull/310/head
Frostebite 2021-09-15 04:10:41 +01:00
parent b00a0baa34
commit 33896798fd
5 changed files with 27 additions and 17 deletions

View File

@ -19,7 +19,7 @@ echo "Checked out $githubSha"
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-guid
md5sum .lfs-assets-guid > .lfs-assets-guid-sum
export LFS_ASSETS_HASH="$(cat ${this.repoPathFull}/.lfs-assets-guid)"
export LFS_ASSETS_HASH="$(cat ${repoPathFull}/.lfs-assets-guid)"
echo ' '
echo 'Contents of .lfs-assets-guid file:'

5
dist/index.js vendored
View File

@ -517,6 +517,10 @@ class AWSBuildEnvironment {
ParameterKey: 'BUILDID',
ParameterValue: buildGuid,
},
{
ParameterKey: 'EnvironmentName',
ParameterValue: this.baseStackName,
},
],
}).promise();
// Side effect: core.info('Creating cleanup double checker cron job...');
@ -1395,6 +1399,7 @@ class Kubernetes {
this.buildGuid = buildGuid;
this.secretName = `build-credentials-${buildGuid}`;
this.jobName = `unity-builder-job-${buildGuid}`;
this.containerName = 'main';
yield kubernetes_secret_1.default.createSecret(secrets, this.secretName, this.namespace, this.kubeClient);
const jobSpec = kubernetes_job_spec_factory_1.default.getJobSpec(commands, image, mountdir, workingdir, environment, this.buildGuid, this.buildParameters, this.secretName, this.pvcName, this.jobName, k8s);
//run

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -218,6 +218,10 @@ class AWSBuildEnvironment implements CloudRunnerProviderInterface {
ParameterKey: 'BUILDID',
ParameterValue: buildGuid,
},
{
ParameterKey: 'EnvironmentName',
ParameterValue: this.baseStackName,
},
],
}).promise();
// Side effect: core.info('Creating cleanup double checker cron job...');

View File

@ -78,6 +78,7 @@ class Kubernetes implements CloudRunnerProviderInterface {
this.buildGuid = buildGuid;
this.secretName = `build-credentials-${buildGuid}`;
this.jobName = `unity-builder-job-${buildGuid}`;
this.containerName = 'main';
await KubernetesSecret.createSecret(secrets, this.secretName, this.namespace, this.kubeClient);
const jobSpec = KubernetesJobSpecFactory.getJobSpec(
commands,