diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-20 13:03:39 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-20 13:03:39 -0700 |
commit | dc4ac7742690f8f2bd759d57108ac4455e717fe9 (patch) | |
tree | f138ba41dd44bf703087eaa8ec43a22fe842923d /worker/jobs/ci_pipeline.run | |
parent | dccb99505e92685ba8ade7c3be84555f2b539a47 (diff) | |
download | ci-dc4ac7742690f8f2bd759d57108ac4455e717fe9.tar.gz ci-dc4ac7742690f8f2bd759d57108ac4455e717fe9.zip |
Mount src directory from path on host running worker container
Diffstat (limited to 'worker/jobs/ci_pipeline.run')
-rwxr-xr-x | worker/jobs/ci_pipeline.run | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/worker/jobs/ci_pipeline.run b/worker/jobs/ci_pipeline.run index 87bcc84..6bee929 100755 --- a/worker/jobs/ci_pipeline.run +++ b/worker/jobs/ci_pipeline.run @@ -1,5 +1,16 @@ #!/bin/sh +# add scripts executed by the pipeline export PATH=$PATH:$PIPELINE_PATH +containerid=$(cat /etc/hostname) +isindocker=$(docker ps -q -f "id=$containerid") +if [ -n "$isindocker" ]; then + executorLaminarPath=$(docker inspect "$containerid" | jq -r '.[0].Mounts[] | select(.Destination == "/var/lib/laminar") | .Source') +else + executorLaminarPath=$(pwd) +fi + +export executorLaminarPath + checkout_ci.js |