Only run production depoy after dev deploy

This commit is contained in:
Nick Sellen 2018-11-30 16:48:08 +00:00
parent 902ef73b04
commit dd3b730e1e

View File

@ -1,5 +1,10 @@
image: ruby:2.5.3 image: ruby:2.5.3
stages:
- test
- staging
- production
variables: variables:
JEKYLL_ENV: production JEKYLL_ENV: production
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
@ -30,7 +35,7 @@ test:
- master - master
deploy:dev: deploy:dev:
stage: deploy stage: staging
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- rsync -aqz public/ cotech@webarch2.co.uk:sites/dev/ - rsync -aqz public/ cotech@webarch2.co.uk:sites/dev/
@ -44,7 +49,7 @@ deploy:dev:
- master - master
deploy:production: deploy:production:
stage: deploy stage: production
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- rsync -aqz public/ cotech@webarch2.co.uk:sites/default/ - rsync -aqz public/ cotech@webarch2.co.uk:sites/default/