You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
534 B
YAML
23 lines
534 B
YAML
machine:
|
|
services:
|
|
- docker
|
|
environment:
|
|
IMAGE_NAME: centurylink/watchtower
|
|
|
|
dependencies:
|
|
override:
|
|
- docker pull centurylink/golang-builder:latest
|
|
|
|
test:
|
|
override:
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
|
|
|
|
deployment:
|
|
hub:
|
|
branch: master
|
|
commands:
|
|
- docker run -v $(pwd):/src centurylink/golang-builder:latest
|
|
- docker build -t $IMAGE_NAME:latest .
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
- docker push $IMAGE_NAME:latest
|