Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 785 Bytes
machine:
services:
- docker
dependencies:
override:
- echo
test:
override:
- docker run -v $PWD:/tmp/redirect.name -w /tmp/redirect.name golang:1.4 go test
- docker run -v $PWD:/tmp/redirect.name -w /tmp/redirect.name -e CGO_ENABLED=0 golang:1.4 go build -a -installsuffix cgo -o server
- docker build -t holic/redirect.name .
deployment:
hub:
owner: holic
tag: /.*/
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- "docker tag holic/redirect.name holic/redirect.name:${CIRCLE_TAG}"
- docker push holic/redirect.name
# If the above push doesn't work, try pushing each tag separately?
# - "docker push holic/redirect.name:${CIRCLE_TAG}"
# - docker push holic/redirect.name:latest