diff options
Diffstat (limited to 'worker/scripts/checkout_ci.ts')
-rwxr-xr-x | worker/scripts/checkout_ci.ts | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/worker/scripts/checkout_ci.ts b/worker/scripts/checkout_ci.ts index 0c6d92c..f2c87a0 100755 --- a/worker/scripts/checkout_ci.ts +++ b/worker/scripts/checkout_ci.ts @@ -62,7 +62,14 @@ await LogMetricTraceable.ofLogTraceable(_logJob) mkdir(wd, { recursive: true }) .then(() => process.chdir(wd)) .then(() => tEitherJob.move(fetchPackageJob).map(executeJob).get()) - .then((e) => e.fold(err => { throw err; }, () => ciJob)), + .then((e) => + e.fold( + (err) => { + throw err; + }, + () => ciJob, + ), + ), ); }), ) @@ -136,13 +143,11 @@ function getSrcDirectoryForCiJob(job: CheckoutCiJob) { return `${job.arguments.returnPath}/${job.arguments.run}/src`; } -const _runFlags = ('--rm --network none --cap-drop ALL' + '--security-opt no-new-privileges').split(' '); -const _image = 'oci.liz.coffee/img/ci-worker:release'; function getPipelineGenerationCommand( job: CheckoutCiJob, pipelineGeneratorPath: string, - image = _image, - runFlags = _runFlags, + image = 'oci.liz.coffee/img/ci-worker:release', + runFlags = ('--rm --network none --cap-drop ALL --security-opt no-new-privileges').split(' '), ): Command { return [ 'docker', |