pipeline improvements

pull/496/head
Frostebite 2023-02-12 15:08:35 +00:00
parent a3796de194
commit d98044523c
3 changed files with 6 additions and 4 deletions

3
dist/index.js generated vendored
View File

@ -3069,6 +3069,7 @@ const fs_1 = __nccwpck_require__(57147);
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
const cloud_runner_system_1 = __nccwpck_require__(99393);
const fs = __importStar(__nccwpck_require__(57147));
const cloud_runner_custom_hooks_1 = __nccwpck_require__(58873);
class LocalDockerCloudRunner {
listResources() {
return new Promise((resolve) => resolve([]));
@ -3145,7 +3146,7 @@ set -e
mkdir -p /github/workspace/cloud-runner-cache
mkdir -p /data/cache
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
${commands}
${cloud_runner_custom_hooks_1.CloudRunnerCustomHooks.ApplyHooksToCommands(commands, this.buildParameters)}
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
`;
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -11,9 +11,10 @@ import { ProviderResource } from '../provider-resource';
import { ProviderWorkflow } from '../provider-workflow';
import { CloudRunnerSystem } from '../../services/cloud-runner-system';
import * as fs from 'fs';
import { CloudRunnerCustomHooks } from '../../services/cloud-runner-custom-hooks';
class LocalDockerCloudRunner implements ProviderInterface {
public buildParameters: BuildParameters | undefined;
public buildParameters!: BuildParameters;
listResources(): Promise<ProviderResource[]> {
return new Promise((resolve) => resolve([]));
@ -117,7 +118,7 @@ set -e
mkdir -p /github/workspace/cloud-runner-cache
mkdir -p /data/cache
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
${commands}
${CloudRunnerCustomHooks.ApplyHooksToCommands(commands, this.buildParameters)}
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
`;
writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {