Skip to content

Commit

Permalink
updated build config for docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
moxious committed Mar 14, 2019
1 parent 7d9f746 commit a0a9f92
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ jobs:
- run:
name: test
command: yarn run test
- run:
name: Build Docker Container
command: docker build -t mdavidallen/graph-workload:latest -f Dockerfile .
- run:
name: Deploy to Docker Hub
command: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
if [ "${CIRCLE_BRANCH}" = "master" ]; then
echo "Pushing docker image"
docker push mdavidallen/graph-workload:latest
else
echo "Not deploying; not master branch."
fi
- store_artifacts:
path: test-results.xml
prefix: tests
Expand Down

0 comments on commit a0a9f92

Please sign in to comment.