форк від autonomic-cooperative/cotech-website
Порівняти коміти
6 Коміти
update-aut
...
polly-mast
Автор | SHA1 | Дата | |
---|---|---|---|
dbe6743834 | |||
c1f9b4162b | |||
2c8bbc3d5a | |||
2baca3c81d | |||
4322865986 | |||
8cc7fc3273 |
@ -1,9 +1,10 @@
|
|||||||
|
---
|
||||||
image: ruby:2.6.6
|
image: ruby:2.6.6
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- staging
|
- staging
|
||||||
- production
|
- production
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
@ -20,48 +21,50 @@ 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
|
||||||
|
- ssh-keyscan 81.95.52.59 >> ~/.ssh/known_hosts
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
- bundle install --path vendor
|
- bundle install --path vendor
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- bundle exec jekyll build -d test
|
- bundle exec jekyll build -d test
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- test
|
- test
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
deploy:dev:
|
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
|
||||||
environment:
|
environment:
|
||||||
name: dev
|
name: dev
|
||||||
url: https://dev.coops.tech
|
url: https://dev.coops.tech
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
deploy:production:
|
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
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: https://www.coops.tech
|
url: https://www.coops.tech
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- rm -rf /root/.ssh/
|
- rm -rf /root/.ssh/
|
||||||
|
...
|
||||||
|
@ -7,7 +7,7 @@ email: hello@outlandish.com
|
|||||||
twitter: outlandish
|
twitter: outlandish
|
||||||
github: outlandishideas
|
github: outlandishideas
|
||||||
telephone: '+44 (0) 207 561 9968'
|
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
|
latitude: 51.56372160000001
|
||||||
longitude: -0.1077572000000373
|
longitude: -0.1077572000000373
|
||||||
clients:
|
clients:
|
||||||
|
Посилання в новій задачі
Block a user