-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcircle.yml
More file actions
21 lines (21 loc) · 846 Bytes
/
circle.yml
File metadata and controls
21 lines (21 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
machine:
services:
- elasticsearch
deployment:
staging:
branch: develop
commands:
- git push git@heroku.com:code-corps-development.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app code-corps-development
- git push git@heroku.com:code-corps-staging.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app code-corps-staging
- gem install apiaryio
- apiary publish --api-name="codecorpsapidevelop" --path ./blueprint/api.apib
production:
branch: master
commands:
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- git push git@heroku.com:code-corps.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app code-corps
- gem install apiaryio
- apiary publish --api-name="codecorpsapi" --path ./blueprint/api.apib