Test for the target path variable being set
This commit is contained in:
parent
395b54c849
commit
0409f69490
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ production:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
|
- 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 dist/* "${WWW_DEPLOY_ROOT_PRODUCTION}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue