2015-07-15 22:48:49 +00:00
|
|
|
machine:
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
environment:
|
2016-11-08 12:19:42 +00:00
|
|
|
IMAGE_NAME: centurylink/watchtower
|
2015-07-15 22:48:49 +00:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
override:
|
2016-10-14 12:12:13 +01:00
|
|
|
- docker pull centurylink/golang-builder:latest
|
2015-07-15 22:48:49 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
2016-10-14 12:12:13 +01:00
|
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
|
2015-07-15 22:48:49 +00:00
|
|
|
|
|
|
|
deployment:
|
|
|
|
hub:
|
2016-11-08 12:19:42 +00:00
|
|
|
branch: master
|
2015-07-15 22:48:49 +00:00
|
|
|
commands:
|
2016-10-14 12:12:13 +01:00
|
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest
|
2015-07-15 22:48:49 +00:00
|
|
|
- docker build -t $IMAGE_NAME:latest .
|
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker push $IMAGE_NAME:latest
|
2016-11-08 12:07:44 +00:00
|
|
|
hub_mirror:
|
2016-11-08 12:19:42 +00:00
|
|
|
branch: [master, auth]
|
2016-11-08 12:07:44 +00:00
|
|
|
owner: rosscado
|
|
|
|
commands:
|
|
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest
|
|
|
|
- docker build -t rosscado/watchtower:latest .
|
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker push rosscado/watchtower:latest
|