diff options
Diffstat (limited to 'worker/jobs')
-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 |