diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5daacfa..8e74d9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,20 @@ test: except: - master +deploy:dev: + stage: deploy + script: + - bundle exec jekyll build -d public + - rsync -aqz public/ cotech@webarch2.co.uk:sites/dev/ + artifacts: + paths: + - public + environment: + name: dev + url: https://dev.static.coops.tech + only: + - master + deploy:production: stage: deploy script: @@ -42,19 +56,4 @@ deploy:production: url: https://static.coops.tech only: - master - when: manual - - -deploy:dev: - stage: deploy - script: - - bundle exec jekyll build -d public - - rsync -aqz public/ cotech@webarch2.co.uk:sites/dev/ - artifacts: - paths: - - public - environment: - name: dev - url: https://dev.static.coops.tech - only: - - master \ No newline at end of file + when: manual \ No newline at end of file