forked from holic/redirect.name
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
25 lines (22 loc) · 785 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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