enpaul.net/.gitlab-ci.yml

25 lines
509 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 -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
tags:
- apache