From dd3b730e1e212830c6f9355aedc2ecc9034bb9c3 Mon Sep 17 00:00:00 2001 From: Nick Sellen Date: Fri, 30 Nov 2018 16:48:08 +0000 Subject: [PATCH] Only run production depoy after dev deploy --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e74d9f..6a4f386 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,10 @@ image: ruby:2.5.3 +stages: +- test +- staging +- production + variables: JEKYLL_ENV: production LC_ALL: C.UTF-8 @@ -30,7 +35,7 @@ test: - master deploy:dev: - stage: deploy + stage: staging script: - bundle exec jekyll build -d public - rsync -aqz public/ cotech@webarch2.co.uk:sites/dev/ @@ -44,7 +49,7 @@ deploy:dev: - master deploy:production: - stage: deploy + stage: production script: - bundle exec jekyll build -d public - rsync -aqz public/ cotech@webarch2.co.uk:sites/default/