diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-01 12:38:35 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-01 12:38:35 -0700 |
commit | b2ab472a677a22f8300b5beb061f426ad35e2a6a (patch) | |
tree | 1ca4465bf6322b514ad5cf0466b7953dedbcb719 /worker/scripts | |
parent | 684d3768920786440278fd3745c7d6a69cb34a8b (diff) | |
download | ci-b2ab472a677a22f8300b5beb061f426ad35e2a6a.tar.gz ci-b2ab472a677a22f8300b5beb061f426ad35e2a6a.zip |
Build local ci exec
Diffstat (limited to 'worker/scripts')
-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', |