forked from autonomic-cooperative/cotech-website
Compare commits
6 Commits
update-aut
...
polly-mast
Author | SHA1 | Date | |
---|---|---|---|
dbe6743834 | |||
c1f9b4162b | |||
2c8bbc3d5a | |||
2baca3c81d | |||
4322865986 | |||
8cc7fc3273 |
@ -1,9 +1,10 @@
|
||||
---
|
||||
image: ruby:2.6.6
|
||||
|
||||
stages:
|
||||
- test
|
||||
- staging
|
||||
- production
|
||||
- test
|
||||
- staging
|
||||
- production
|
||||
|
||||
variables:
|
||||
JEKYLL_ENV: production
|
||||
@ -20,48 +21,50 @@ before_script:
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||
- ssh-keyscan web.cotech.uk > ~/.ssh/known_hosts
|
||||
- ssh-keyscan 81.95.52.59 >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- bundle install --path vendor
|
||||
|
||||
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@webarch2.co.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
|
||||
|
||||
deploy:production:
|
||||
stage: production
|
||||
script:
|
||||
- bundle exec jekyll build -d public
|
||||
- rsync -aqz --delete-after public/ cotech@webarch2.co.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
|
||||
when: manual
|
||||
|
||||
after_script:
|
||||
- rm -rf /root/.ssh/
|
||||
- rm -rf /root/.ssh/
|
||||
...
|
||||
|
@ -7,7 +7,7 @@ email: hello@outlandish.com
|
||||
twitter: outlandish
|
||||
github: outlandishideas
|
||||
telephone: '+44 (0) 207 561 9968'
|
||||
address: 3rd Floor,149 Fonthill Road,Finsbury Park,London,United Kingdom,N4 3HF
|
||||
address: 4th Floor, 113-115 Fonthill Road, Finsbury Park, London, United Kingdom, N4 3HH
|
||||
latitude: 51.56372160000001
|
||||
longitude: -0.1077572000000373
|
||||
clients:
|
||||
|
Reference in New Issue
Block a user