enpaul.net/.gitlab-ci.yml

26 lines
553 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
2017-12-21 23:22:38 +00:00
- rm ./.gitlab-ci.yml
- cp -r ./* /var/www/html/enpaul.new/
- cp ./.htaccess /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