Test server migration

This commit is contained in:
Chris Croome 2022-11-06 19:28:17 +00:00
parent 7c1e196dfd
commit 8cc7fc3273
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ before_script:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - ssh-keyscan web.cotech.uk > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- bundle install --path vendor - bundle install --path vendor
@ -38,7 +38,7 @@ 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@webarch2.co.uk:sites/dev/ - rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/
artifacts: artifacts:
paths: paths:
- public - public
@ -52,7 +52,7 @@ 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@webarch2.co.uk:sites/default/ - rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/
artifacts: artifacts:
paths: paths:
- public - public