try to simplify stuff

This commit is contained in:
Manuel Friedli 2016-06-27 00:47:59 +02:00
parent c7dc93e092
commit c218052556
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ staging:
- develop - develop
variables: variables:
ENVIRON: staging ENVIRON: staging
TARGET: $WWW_DEPLOY_ROOT_STAGING
production: production:
stage: deploy stage: deploy

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
echo "Stage: ${CI_BUILD_STAGE}" echo "Target: ${TARGET}"
if [ "develop" == "${ENVIRON}" ] ; then if [ "develop" == "${ENVIRON}" ] ; then
echo "Deploying ${CI_BUILD_REF_NAME} to develop. You can access it at .../${CI_BUILD_REF_NAME}" echo "Deploying ${CI_BUILD_REF_NAME} to develop. You can access it at .../${CI_BUILD_REF_NAME}"
target="${WWW_DEPLOY_ROOT_DEVELOP}/${CI_BUILD_REF_NAME}" target="${WWW_DEPLOY_ROOT_DEVELOP}/${CI_BUILD_REF_NAME}"