Commit 093e5b8b authored by Ian Baum's avatar Ian Baum

Use basename in single-script-job to allow for subdirectories

parent 6da50490
......@@ -169,7 +169,7 @@ stages:
- export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}"
- apk add --update openssl
- wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME
- chmod 755 $SCRIPT_NAME
- chmod 755 $(basename $SCRIPT_NAME)
.rake-exec: &rake-exec
<<: *dedicated-no-docs-no-db-pull-cache-job
......@@ -1155,12 +1155,10 @@ stop_review:
allow_failure: true
cache: {}
dependencies: []
before_script: []
variables:
SCRIPT_NAME: "review_apps/review-apps.sh"
script:
- export SCRIPT_NAME="review-apps.sh"
- wget "${CI_PROJECT_URL}/raw/${CI_COMMIT_SHA}/scripts/review_apps/${SCRIPT_NAME}"
- chmod 755 "${SCRIPT_NAME}"
- source "${SCRIPT_NAME}"
- source $(basename "${SCRIPT_NAME}")
- delete
- cleanup
when: manual
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment