Skip to content

Commit

Permalink
Add docker build config for CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon committed Feb 14, 2019
1 parent 23f88d6 commit bfbf9ac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ jobs:
path: tmp/screenshots
destination: screenshots

docker:
build:
working_directory: ~/panlexicon
steps:
- checkout
- run:
name: Install Docker Compose
command: |
curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
- run: docker-compose build
- run: docker-compose run web bin/rspec

deploy:
machine:
enabled: true
Expand Down Expand Up @@ -85,6 +99,7 @@ workflows:
build_and_deploy:
jobs:
- build
- docker
- deploy:
requires:
- build
Expand Down

0 comments on commit bfbf9ac

Please sign in to comment.