2017-12-21 22:25:36 +00:00
|
|
|
stages:
|
|
|
|
- deploy-iis
|
2017-12-21 22:34:21 +00:00
|
|
|
- deploy-apache
|
2017-12-21 22:25:36 +00:00
|
|
|
|
|
|
|
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:
|
2017-12-21 22:34:21 +00:00
|
|
|
- mkdir /var/www/html/enpaul.new
|
2017-12-21 22:25:36 +00:00
|
|
|
- rm ./deploy.ps1
|
|
|
|
- rm ./web.config
|
|
|
|
- rm -r ./_archive
|
2017-12-21 22:45:35 +00:00
|
|
|
- cp -r ./* /var/www/html/enpaul.new/
|
2017-12-21 22:50:37 +00:00
|
|
|
- mv /var/www/html/enpaul /var/www/html/enpaul.old
|
|
|
|
- mv /var/www/html/enpaul.new /var/www/html/enpaul
|
2017-12-21 22:34:21 +00:00
|
|
|
- rm -r /var/www/html/enpaul.old
|
2017-12-21 22:25:36 +00:00
|
|
|
tags:
|
|
|
|
- apache
|