traefik/circle.yml

29 lines
657 B
YAML
Raw Normal View History

2015-09-14 09:28:33 +00:00
machine:
services:
- docker
environment:
REPO: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
dependencies:
pre:
2015-09-14 11:42:59 +00:00
- go get github.com/tcnksm/ghr
- make validate
override:
- make binary
2015-09-14 11:42:59 +00:00
test:
2015-09-14 09:28:33 +00:00
override:
- make test
post:
- make image
2015-09-14 09:28:33 +00:00
deployment:
2015-09-16 12:48:35 +00:00
hub:
2015-09-14 11:42:59 +00:00
branch: master
commands:
2015-09-22 21:29:45 +00:00
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace --prerelease v1.0 dist/
2015-09-14 09:28:33 +00:00
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push ${REPO,,}:latest
- docker tag ${REPO,,}:latest ${REPO,,}:$CIRCLE_SHA1
- docker push ${REPO,,}:$CIRCLE_SHA1