enpaul.net/.gitlab-ci.yml

25 lines
509 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/
- mv -r /var/www/html/enpaul /var/www/html/enpaul.old
- mv -r /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