Skip to content

Commit

Permalink
Build docker images after successful test round
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Giordano committed Feb 24, 2017
1 parent 1d28b49 commit 1938b8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
machine:
node:
version: 6.10.0
services:
- docker

deployment:
docker:
branch: master
commands:
- bash -e dockerbuild.sh
10 changes: 10 additions & 0 deletions dockerbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -e
docker login --email="[email protected]" --password=$REGISTRY_PASSWORD --username=$REGISTRY_USERNAME $REGISTRY_HOST

BASE_NAME=$REGISTRY_HOST"/vivace"
BUILD_VERSION=$BASE_NAME:$CIRCLE_BUILD_NUM

docker build --pull -t $BUILD_VERSION .
docker push $BUILD_VERSION

exit 0

0 comments on commit 1938b8e

Please sign in to comment.