5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-28 17:13:08 +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 image: ruby:2.6.6
stages: stages:
- test - test
- staging - staging
- production - production
variables: variables:
JEKYLL_ENV: production JEKYLL_ENV: production
@ -27,41 +28,44 @@ before_script:
test: test:
stage: test stage: test
script: script:
- bundle exec jekyll build -d test - bundle exec jekyll build -d test
artifacts: artifacts:
paths: paths:
- test - test
except: except:
- master - master
deploy:dev: deploy:dev:
stage: staging stage: staging
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/ - rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/
artifacts: artifacts:
paths: paths:
- public - public
environment: environment:
name: dev name: dev
url: https://dev.coops.tech url: https://dev.coops.tech
only: only:
- master - master
- servermigration
deploy:production: deploy:production:
stage: production stage: production
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/ - rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/
artifacts: artifacts:
paths: paths:
- public - public
environment: environment:
name: production name: production
url: https://www.coops.tech url: https://www.coops.tech
only: only:
- master - master
- servermigration
when: manual when: manual
after_script: after_script:
- rm -rf /root/.ssh/ - rm -rf /root/.ssh/
...