Skip to content
Snippets Groups Projects
Verified Commit 06a6832c authored by Chris Coley's avatar Chris Coley
Browse files

Testing shell substitution in environment name

parent 729cd3cf
Branches
No related tags found
2 merge requests!5Variable substitution,!4Variable overriding
......@@ -17,6 +17,7 @@ workflow:
script:
- sed -i "s/%%BRANCH%%/$CI_COMMIT_BRANCH/g" src/index.html
- mv src public
- echo $SHELL
- printenv
artifacts:
paths:
......@@ -30,7 +31,7 @@ review:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
environment:
name: "review $CI_COMMIT_BRANCH"
url: "https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/index.html"
url: "https://${CI_PROJECT_ROOT_NAMESPACE}.${CI_PAGES_DOMAIN}/-${CI_PROJECT_NAMESPACE#$CI_PROJECT_ROOT_NAMESPACE}/${CI_PROJECT_NAME}/-/jobs/$CI_JOB_ID/artifacts/public/index.html"
# Deploy to GitLab Pages for pushes on the default branch
pages:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment