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