Refactor state and steps out of cloud-runner main class

pull/310/head
Frostebite 2021-10-05 00:31:33 +01:00
parent c3e7ba5704
commit d6d4bcb003
3 changed files with 4 additions and 4 deletions

2
dist/index.js vendored
View File

@ -2426,7 +2426,7 @@ class EphemeralGitHubRunnerStep {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
cloud_runner_logger_1.default.log(`Cloud Runner is running in ephemeral GitHub runner mode`); cloud_runner_logger_1.default.log(`Cloud Runner is running in ephemeral GitHub runner mode`);
const installAndStartRunner = 'mkdir actions-runner && cd actions-runner && curl -O -L https://github.com/actions/runner/releases/download/v2.283.1/actions-runner-linux-x64-2.283.1.tar.gz && tar xzf ./actions-runner-linux-x64-2.283.1.tar.gz'; const installAndStartRunner = 'mkdir actions-runner && cd actions-runner && curl -O -L https://github.com/actions/runner/releases/download/v2.283.1/actions-runner-linux-x64-2.283.1.tar.gz && tar xzf ./actions-runner-linux-x64-2.283.1.tar.gz';
yield cloud_runner_state_1.CloudRunnerState.CloudRunnerProviderPlatform.runBuildTask(cloud_runner_state_1.CloudRunnerState.buildGuid, image, [installAndStartRunner], ``, ``, environmentVariables, secrets); yield cloud_runner_state_1.CloudRunnerState.CloudRunnerProviderPlatform.runBuildTask(cloud_runner_state_1.CloudRunnerState.buildGuid, image, [installAndStartRunner], `/`, `/`, environmentVariables, secrets);
}); });
} }
} }

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -26,8 +26,8 @@ export class EphemeralGitHubRunnerStep implements StandardStepInterface {
CloudRunnerState.buildGuid, CloudRunnerState.buildGuid,
image, image,
[installAndStartRunner], [installAndStartRunner],
``, `/`,
``, `/`,
environmentVariables, environmentVariables,
secrets, secrets,
); );