try to simplify stuff
This commit is contained in:
parent
c7dc93e092
commit
c218052556
2 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ staging:
|
||||||
- develop
|
- develop
|
||||||
variables:
|
variables:
|
||||||
ENVIRON: staging
|
ENVIRON: staging
|
||||||
|
TARGET: $WWW_DEPLOY_ROOT_STAGING
|
||||||
|
|
||||||
production:
|
production:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue