enpaul.net/.gitlab-ci.yml
2017-12-21 18:22:38 -05:00

25 lines
506 B
YAML

stages:
- deploy-iis
- deploy-apache
IIS Deployment:
stage: deploy-iis
script:
- powershell .\deploy.ps1
tags:
- iis
Apache Deployment:
stage: deploy-apache
script:
- mkdir /var/www/html/enpaul.new
- rm ./deploy.ps1
- rm ./web.config
- rm ./.gitlab-ci.yml
- cp -r ./* /var/www/html/enpaul.new/
- 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
tags:
- apache