Updated ci config to use conditional dir creation
This commit is contained in:
parent
c69fe44fdd
commit
f2dde2e553
@ -31,7 +31,7 @@ Apache Production:
|
|||||||
- rm /var/www/html/build-tmp.enpaul/web.config
|
- rm /var/www/html/build-tmp.enpaul/web.config
|
||||||
- "[ -d /var/www/html/enpaul ] && mv /var/www/html/enpaul /var/www/html/enpaul.old"
|
- "[ -d /var/www/html/enpaul ] && mv /var/www/html/enpaul /var/www/html/enpaul.old"
|
||||||
- mv /var/www/html/build-tmp.enpaul /var/www/html/enpaul
|
- mv /var/www/html/build-tmp.enpaul /var/www/html/enpaul
|
||||||
- rm -r /var/www/html/enpaul.old
|
- "[ -d /var/www/html/enpaul.old ] && rm -r /var/www/html/enpaul.old"
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
@ -46,7 +46,7 @@ Apache Development:
|
|||||||
- rm /var/www/html/build-tmp.enpaul-dev/web.config
|
- rm /var/www/html/build-tmp.enpaul-dev/web.config
|
||||||
- "[ -d /var/www/html/enpaul-dev ] && mv /var/www/html/enpaul-dev /var/www/html/enpaul-dev.old"
|
- "[ -d /var/www/html/enpaul-dev ] && mv /var/www/html/enpaul-dev /var/www/html/enpaul-dev.old"
|
||||||
- mv /var/www/html/build-tmp.enpaul-dev /var/www/html/enpaul-dev
|
- mv /var/www/html/build-tmp.enpaul-dev /var/www/html/enpaul-dev
|
||||||
- rm -r /var/www/html/enpaul-dev.old
|
- "[ -d /var/www/html/enpaul-dev.old ] && rm -r /var/www/html/enpaul-dev.old"
|
||||||
only:
|
only:
|
||||||
- development
|
- development
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user