Integration test removed, workflows serve as good integration tests
parent
22c1b903a4
commit
1ce7383d4a
|
|
@ -25,6 +25,12 @@ inputs:
|
||||||
postBuildSteps:
|
postBuildSteps:
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
preBuildSteps:
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
customBuildSteps:
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
buildsPath:
|
buildsPath:
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
|
|
||||||
|
|
@ -1252,24 +1252,6 @@ class CloudRunner {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
static runEphemeralRegistrationJob(buildSteps) {
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
|
||||||
buildSteps = yaml_1.default.parse(buildSteps);
|
|
||||||
for (const step of buildSteps) {
|
|
||||||
const stepSecrets = step.secrets.map((x) => {
|
|
||||||
const secret = {
|
|
||||||
ParameterKey: x.name,
|
|
||||||
EnvironmentVariable: x.name,
|
|
||||||
ParameterValue: x.value,
|
|
||||||
};
|
|
||||||
return secret;
|
|
||||||
});
|
|
||||||
yield this.CloudRunnerProviderPlatform.runBuildTask(this.buildGuid, step['image'], [
|
|
||||||
'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 && ls',
|
|
||||||
], `/${buildVolumeFolder}`, `/${buildVolumeFolder}`, this.defaultGitShaEnvironmentVariable, [...this.defaultSecrets, ...stepSecrets]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
static setupStep() {
|
static setupStep() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
cloud_runner_logger_1.default.log('Starting step 1/4 clone and restore cache)');
|
cloud_runner_logger_1.default.log('Starting step 1/4 clone and restore cache)');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -267,6 +267,7 @@ class CloudRunner {
|
||||||
await this.runCustomJob(this.buildParams.postBuildSteps);
|
await this.runCustomJob(this.buildParams.postBuildSteps);
|
||||||
CloudRunnerLogger.logWithTime('Post build steps time');
|
CloudRunnerLogger.logWithTime('Post build steps time');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async runJobAsEphemeralGitHubRunner(baseImage: any) {
|
private static async runJobAsEphemeralGitHubRunner(baseImage: any) {
|
||||||
CloudRunnerLogger.log(`Cloud Runner is running in ephemeral GitHub runner mode`);
|
CloudRunnerLogger.log(`Cloud Runner is running in ephemeral GitHub runner mode`);
|
||||||
const installAndStartRunner =
|
const installAndStartRunner =
|
||||||
|
|
@ -281,6 +282,7 @@ class CloudRunner {
|
||||||
[...this.defaultSecrets],
|
[...this.defaultSecrets],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async runCustomJob(buildSteps) {
|
private static async runCustomJob(buildSteps) {
|
||||||
CloudRunnerLogger.log(`Cloud Runner is running in custom job mode`);
|
CloudRunnerLogger.log(`Cloud Runner is running in custom job mode`);
|
||||||
buildSteps = YAML.parse(buildSteps);
|
buildSteps = YAML.parse(buildSteps);
|
||||||
|
|
@ -305,31 +307,6 @@ class CloudRunner {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async runEphemeralRegistrationJob(buildSteps) {
|
|
||||||
buildSteps = YAML.parse(buildSteps);
|
|
||||||
for (const step of buildSteps) {
|
|
||||||
const stepSecrets: CloudRunnerSecret[] = step.secrets.map((x) => {
|
|
||||||
const secret: CloudRunnerSecret = {
|
|
||||||
ParameterKey: x.name,
|
|
||||||
EnvironmentVariable: x.name,
|
|
||||||
ParameterValue: x.value,
|
|
||||||
};
|
|
||||||
return secret;
|
|
||||||
});
|
|
||||||
await this.CloudRunnerProviderPlatform.runBuildTask(
|
|
||||||
this.buildGuid,
|
|
||||||
step['image'],
|
|
||||||
[
|
|
||||||
'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 && ls',
|
|
||||||
],
|
|
||||||
`/${buildVolumeFolder}`,
|
|
||||||
`/${buildVolumeFolder}`,
|
|
||||||
this.defaultGitShaEnvironmentVariable,
|
|
||||||
[...this.defaultSecrets, ...stepSecrets],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static async setupStep() {
|
private static async setupStep() {
|
||||||
CloudRunnerLogger.log('Starting step 1/4 clone and restore cache)');
|
CloudRunnerLogger.log('Starting step 1/4 clone and restore cache)');
|
||||||
await this.CloudRunnerProviderPlatform.runBuildTask(
|
await this.CloudRunnerProviderPlatform.runBuildTask(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue