Test for the target path variable being set

This commit is contained in:
Manuel Friedli 2017-03-14 23:54:42 +01:00
parent 395b54c849
commit 0409f69490

View file

@ -45,7 +45,8 @@ production:
only:
- master
script:
- if [[ ! -d "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then mkdir -p "${WWW_DEPLOY_ROOT_PRODUCTION}" || die "Failed to create target directory for deployment!"; 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
- cp dist/* "${WWW_DEPLOY_ROOT_PRODUCTION}"
cleanup_job: