default secrets for unity username and password
parent
89a630d302
commit
32e25599b7
|
|
@ -3038,6 +3038,18 @@ class TaskParameterSerializer {
|
|||
name: 'BUILD_TARGET',
|
||||
value: __1.CloudRunner.buildParameters.platform,
|
||||
},
|
||||
{
|
||||
name: 'UNITY_SERIAL',
|
||||
value: __1.Input.unitySerial,
|
||||
},
|
||||
{
|
||||
name: 'UNITY_USERNAME',
|
||||
value: __1.Input.unityUsername,
|
||||
},
|
||||
{
|
||||
name: 'UNITY_PASSWORD',
|
||||
value: __1.Input.unityPassword,
|
||||
},
|
||||
...TaskParameterSerializer.serializeBuildParamsAndInput,
|
||||
];
|
||||
}
|
||||
|
|
@ -3207,15 +3219,15 @@ class BuildAutomationWorkflow {
|
|||
const setupHooks = cloud_runner_build_command_process_1.CloudRunnerBuildCommandProcessor.getHooks(cloud_runner_1.default.buildParameters.customJobHooks).filter((x) => x.step.includes(`setup`));
|
||||
const buildHooks = cloud_runner_build_command_process_1.CloudRunnerBuildCommandProcessor.getHooks(cloud_runner_1.default.buildParameters.customJobHooks).filter((x) => x.step.includes(`build`));
|
||||
return `apt-get update -q
|
||||
apt-get install -y -q zip tree npm git-lfs jq unzip git
|
||||
apt-get install -q -y zip tree npm git-lfs jq unzip git
|
||||
npm install -g n
|
||||
n stable
|
||||
cd ${cloud_runner_folders_1.CloudRunnerFolders.repoPathFull.replace(/\\/g, `/`)}
|
||||
${setupHooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}
|
||||
export GITHUB_WORKSPACE="${cloud_runner_folders_1.CloudRunnerFolders.repoPathFull.replace(/\\/g, `/`)}"
|
||||
${BuildAutomationWorkflow.SetupCommands}
|
||||
${setupHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||
${buildHooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}
|
||||
cd ${cloud_runner_folders_1.CloudRunnerFolders.repoPathFull.replace(/\\/g, `/`)}
|
||||
${buildHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||
${BuildAutomationWorkflow.BuildCommands}`;
|
||||
}
|
||||
|
|
@ -4047,6 +4059,15 @@ class Input {
|
|||
static get region() {
|
||||
return Input.getInput('region') || 'eu-west-2';
|
||||
}
|
||||
static get unitySerial() {
|
||||
return Input.getInput('unitySerial') || false;
|
||||
}
|
||||
static get unityUsername() {
|
||||
return Input.getInput('unityUsername') || false;
|
||||
}
|
||||
static get unityPassword() {
|
||||
return Input.getInput('unityPassword') || false;
|
||||
}
|
||||
static get githubRepo() {
|
||||
return Input.getInput('GITHUB_REPOSITORY') || Input.getInput('GITHUB_REPO') || false;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -19,6 +19,18 @@ export class TaskParameterSerializer {
|
|||
name: 'BUILD_TARGET',
|
||||
value: CloudRunner.buildParameters.platform,
|
||||
},
|
||||
{
|
||||
name: 'UNITY_SERIAL',
|
||||
value: Input.unitySerial,
|
||||
},
|
||||
{
|
||||
name: 'UNITY_USERNAME',
|
||||
value: Input.unityUsername,
|
||||
},
|
||||
{
|
||||
name: 'UNITY_PASSWORD',
|
||||
value: Input.unityPassword,
|
||||
},
|
||||
...TaskParameterSerializer.serializeBuildParamsAndInput,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,15 +81,15 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||
(x) => x.step.includes(`build`),
|
||||
);
|
||||
return `apt-get update -q
|
||||
apt-get install -y -q zip tree npm git-lfs jq unzip git
|
||||
apt-get install -q -y zip tree npm git-lfs jq unzip git
|
||||
npm install -g n
|
||||
n stable
|
||||
cd ${CloudRunnerFolders.repoPathFull.replace(/\\/g, `/`)}
|
||||
${setupHooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}
|
||||
export GITHUB_WORKSPACE="${CloudRunnerFolders.repoPathFull.replace(/\\/g, `/`)}"
|
||||
${BuildAutomationWorkflow.SetupCommands}
|
||||
${setupHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||
${buildHooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}
|
||||
cd ${CloudRunnerFolders.repoPathFull.replace(/\\/g, `/`)}
|
||||
${buildHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||
${BuildAutomationWorkflow.BuildCommands}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,6 +94,15 @@ class Input {
|
|||
static get region(): string {
|
||||
return Input.getInput('region') || 'eu-west-2';
|
||||
}
|
||||
static get unitySerial(): string {
|
||||
return Input.getInput('unitySerial') || false;
|
||||
}
|
||||
static get unityUsername(): string {
|
||||
return Input.getInput('unityUsername') || false;
|
||||
}
|
||||
static get unityPassword(): string {
|
||||
return Input.getInput('unityPassword') || false;
|
||||
}
|
||||
|
||||
static get githubRepo() {
|
||||
return Input.getInput('GITHUB_REPOSITORY') || Input.getInput('GITHUB_REPO') || false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue