|
|
@ -6,17 +6,17 @@ machine:
|
|
|
|
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
dependencies:
|
|
|
|
override:
|
|
|
|
override:
|
|
|
|
- docker pull bdehamer/golang-builder:latest
|
|
|
|
- docker pull centurylink/golang-builder:latest
|
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
test:
|
|
|
|
override:
|
|
|
|
override:
|
|
|
|
- docker run -v $(pwd):/src bdehamer/golang-builder:latest --test
|
|
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
|
|
|
|
|
|
|
|
|
|
|
|
deployment:
|
|
|
|
deployment:
|
|
|
|
hub:
|
|
|
|
hub:
|
|
|
|
branch: master
|
|
|
|
branch: master
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- docker run -v $(pwd):/src bdehamer/golang-builder:latest
|
|
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest
|
|
|
|
- docker build -t $IMAGE_NAME:latest .
|
|
|
|
- docker build -t $IMAGE_NAME:latest .
|
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker push $IMAGE_NAME:latest
|
|
|
|
- docker push $IMAGE_NAME:latest
|
|
|
|