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: ...@@ -169,7 +169,7 @@ stages:
- export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}" - export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}"
- apk add --update openssl - apk add --update openssl
- wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME - wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME
- chmod 755 $SCRIPT_NAME - chmod 755 $(basename $SCRIPT_NAME)
.rake-exec: &rake-exec .rake-exec: &rake-exec
<<: *dedicated-no-docs-no-db-pull-cache-job <<: *dedicated-no-docs-no-db-pull-cache-job
...@@ -1155,12 +1155,10 @@ stop_review: ...@@ -1155,12 +1155,10 @@ stop_review:
allow_failure: true allow_failure: true
cache: {} cache: {}
dependencies: [] dependencies: []
before_script: [] variables:
SCRIPT_NAME: "review_apps/review-apps.sh"
script: script:
- export SCRIPT_NAME="review-apps.sh" - source $(basename "${SCRIPT_NAME}")
- wget "${CI_PROJECT_URL}/raw/${CI_COMMIT_SHA}/scripts/review_apps/${SCRIPT_NAME}"
- chmod 755 "${SCRIPT_NAME}"
- source "${SCRIPT_NAME}"
- delete - delete
- cleanup - cleanup
when: manual 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