Commit 6137386b authored by Mikael Salson's avatar Mikael Salson

.gitlab-ci.yml: Use deploy variables for review

DEPLOY_SERVER was used for two different things.
We now have REVIEW_SERVER and REVIEW_SERVER_PATH.
parent 0a79c79e
Pipeline #52612 passed with stages
in 59 minutes and 2 seconds
...@@ -330,7 +330,7 @@ deploy_review: ...@@ -330,7 +330,7 @@ deploy_review:
script: script:
- make -C browser icons - make -C browser icons
- echo "$REVIEW_CONFIG_JS" > browser/js/conf.js - echo "$REVIEW_CONFIG_JS" > browser/js/conf.js
- rsync -av --delete browser $DEPLOY_SERVER:$DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG - rsync -av --delete browser $REVIEW_SERVER:$REVIEW_SERVER_PATH$CI_BUILD_REF_SLUG
environment: environment:
name: review/$CI_BUILD_REF_NAME name: review/$CI_BUILD_REF_NAME
url: http://$CI_BUILD_REF_SLUG.ci.vidjil.org/?data=analysis-example.vidjil url: http://$CI_BUILD_REF_SLUG.ci.vidjil.org/?data=analysis-example.vidjil
...@@ -385,7 +385,7 @@ stop_deploy_review: ...@@ -385,7 +385,7 @@ stop_deploy_review:
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: script:
- ssh $DEPLOY_SERVER "rm -rf $DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG" - ssh $REVIEW_SERVER "rm -rf $REVIEW_SERVER_PATH$CI_BUILD_REF_SLUG"
when: manual when: manual
environment: environment:
name: review/$CI_BUILD_REF_NAME name: review/$CI_BUILD_REF_NAME
......
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