Commit 3fd57b99 authored by Vadym Gidulian's avatar Vadym Gidulian

Changed CI variables' names according to GitLab 9.0 changes

parent 097aef1e
......@@ -6,12 +6,12 @@ deploy:review:
stage: deploy
script:
- rm -rf .git .gitignore .gitlab .gitlab-ci.yml
- rsync -rv --delete ./ /test/$CI_PROJECT_NAME--$CI_BUILD_REF_SLUG/
- rsync -rv --delete ./ /test/$CI_PROJECT_NAME--$CI_COMMIT_REF_SLUG/
tags:
- gviagroup-deploy
environment:
name: review/$CI_BUILD_REF_NAME
url: http://$CI_BUILD_REF_SLUG.$CI_PROJECT_NAME.test.$DOMAIN
name: review/$CI_COMMIT_REF_NAME
url: http://$CI_COMMIT_REF_SLUG.$CI_PROJECT_NAME.test.$DOMAIN
on_stop: undeploy:review
only:
- branches
......@@ -67,12 +67,12 @@ undeploy:review:
variables:
GIT_STRATEGY: none
script:
- rm -rf /test/$CI_PROJECT_NAME--$CI_BUILD_REF_SLUG
- rm -rf /test/$CI_PROJECT_NAME--$CI_COMMIT_REF_SLUG
when: manual
tags:
- gviagroup-deploy
environment:
name: review/$CI_BUILD_REF_NAME
name: review/$CI_COMMIT_REF_NAME
action: stop
only:
- branches
......
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