5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-24 23:53:07 +00:00

Test servermigration branch

This commit is contained in:
Chris Croome 2022-11-06 19:32:22 +00:00
parent 8cc7fc3273
commit 4322865986

View File

@ -1,9 +1,10 @@
---
image: ruby:2.6.6
stages:
- test
- staging
- production
- test
- staging
- production
variables:
JEKYLL_ENV: production
@ -27,41 +28,44 @@ before_script:
test:
stage: test
script:
- bundle exec jekyll build -d test
- bundle exec jekyll build -d test
artifacts:
paths:
- test
- test
except:
- master
- master
deploy:dev:
stage: staging
script:
- bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/
- bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/
artifacts:
paths:
- public
- public
environment:
name: dev
url: https://dev.coops.tech
only:
- master
- master
- servermigration
deploy:production:
stage: production
script:
- bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/
- bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/
artifacts:
paths:
- public
- public
environment:
name: production
url: https://www.coops.tech
only:
- master
- master
- servermigration
when: manual
after_script:
- rm -rf /root/.ssh/
- rm -rf /root/.ssh/
...