-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build docker images after successful test round
- Loading branch information
Matteo Giordano
committed
Feb 24, 2017
1 parent
1d28b49
commit 1938b8e
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |