Fixed deployment to production.

This commit is contained in:
Manuel Friedli 2017-03-15 02:47:27 +01:00
parent 277b34ab58
commit 38ff12070e

View file

@ -48,7 +48,7 @@ production:
script: script:
- if [[ -z "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then echo "WWW_DEPLOY_ROOT_PRODUCTION is not set" ; exit 1 ; fi - if [[ -z "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then echo "WWW_DEPLOY_ROOT_PRODUCTION is not set" ; exit 1 ; fi
- if [[ ! -d "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then mkdir -p "${WWW_DEPLOY_ROOT_PRODUCTION}" || die "Failed to create target directory for deployment!" ; fi - if [[ ! -d "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then mkdir -p "${WWW_DEPLOY_ROOT_PRODUCTION}" || die "Failed to create target directory for deployment!" ; fi
- cp dist/* "${WWW_DEPLOY_ROOT_PRODUCTION}" - cp -r dist/* "${WWW_DEPLOY_ROOT_PRODUCTION}"
cleanup_job: cleanup_job:
stage: cleanup stage: cleanup