enpaul.net/.gitlab-ci.yml

25 lines
503 B
YAML
Raw Normal View History

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