2017-12-21 22:25:36 +00:00
|
|
|
stages:
|
|
|
|
- deploy-apache
|
|
|
|
- deploy-iis
|
|
|
|
|
|
|
|
IIS Deployment:
|
|
|
|
stage: deploy-iis
|
2017-08-29 15:30:16 +00:00
|
|
|
script:
|
2017-08-29 20:39:36 +00:00
|
|
|
- powershell .\deploy.ps1
|
2017-08-29 15:30:16 +00:00
|
|
|
tags:
|
2017-12-21 22:25:36 +00:00
|
|
|
- iis
|
|
|
|
|
|
|
|
Apache Deployment:
|
|
|
|
stage: deploy-apache
|
|
|
|
script:
|
|
|
|
- mkdir /var/www/enpaul.new
|
|
|
|
- rm ./deploy.ps1
|
|
|
|
- rm ./web.config
|
|
|
|
- rm -r ./_archive
|
|
|
|
- cp ./* /var/www/enpaul.new/
|
|
|
|
- mv -r /var/www/enpaul /var/www/enpaul.old
|
|
|
|
- mv -r /var/www/enpaul.new /var/www/enpaul
|
|
|
|
- rm -r /var/www/enpaul.old
|
|
|
|
tags:
|
|
|
|
- apache
|