-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
30 lines (27 loc) · 1001 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
machine:
services:
- docker
dependencies:
override:
- docker info
- sudo pip install docker-compose
- docker build -t dakotalightning/docker-nginx ./nginx
- docker build -t dakotalightning/docker-rails -f ./web/Dockerfile.production ./web
test:
override:
- cat ./docker-production.yml
- docker ps -a
- docker-compose ps
- docker-compose stop
- docker-compose -f ./docker-production.yml up -d; sleep 20
- docker-compose ps
- docker-compose -f ./docker-production.yml run web bundle exec rake db:create db:schema:load RAILS_ENV=test --trace
- docker-compose -f ./docker-production.yml run web bundle exec rake db:create db:schema:load RAILS_ENV=production --trace
- curl --retry 10 --retry-delay 5 -v http://localhost
deployment:
hub:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push dakotalightning/docker-rails
- docker push dakotalightning/docker-nginx