redirect.name/circle.yml

26 lines
785 B
YAML

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