From b2ab472a677a22f8300b5beb061f426ad35e2a6a Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Tue, 1 Jul 2025 12:38:35 -0700 Subject: Build local ci exec --- worker/scripts/checkout_ci.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'worker/scripts') 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', -- cgit v1.2.3-70-g09d2