From 4322865986824a14164de39efe0cd514894dfaff Mon Sep 17 00:00:00 2001 From: Chris Croome Date: Sun, 6 Nov 2022 19:32:22 +0000 Subject: [PATCH] Test servermigration branch --- .gitlab-ci.yml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99bf08d..bace35d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,10 @@ +--- 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/ +...