Skip to content
Snippets Groups Projects
Commit 43228659 authored by Chris Croome's avatar Chris Croome
Browse files

Test servermigration branch

parent 8cc7fc32
No related branches found
No related tags found
1 merge request!80Server migration
---
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/
...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment