2015-09-14 09:28:33 +00:00
|
|
|
machine:
|
2015-09-27 13:56:53 +00:00
|
|
|
pre:
|
|
|
|
- sudo docker -d -e lxc -s btrfs -H tcp://0.0.0.0:2375:
|
|
|
|
background: true
|
2015-09-28 21:16:52 +00:00
|
|
|
- curl --retry 15 --retry-delay 3 -v http://172.17.42.1:2375/version
|
2015-09-14 09:28:33 +00:00
|
|
|
environment:
|
|
|
|
REPO: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
2015-09-27 13:56:53 +00:00
|
|
|
DOCKER_HOST: tcp://172.17.42.1:2375
|
2015-10-29 13:41:32 +00:00
|
|
|
MAKE_DOCKER_HOST: $DOCKER_HOST
|
2015-10-14 20:04:56 +00:00
|
|
|
VERSION: v1.0.alpha.$CIRCLE_BUILD_NUM
|
2015-09-14 09:28:33 +00:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
pre:
|
2015-09-27 13:56:53 +00:00
|
|
|
- docker version
|
2015-09-14 11:42:59 +00:00
|
|
|
- go get github.com/tcnksm/ghr
|
2015-09-15 19:38:54 +00:00
|
|
|
- make validate
|
|
|
|
override:
|
|
|
|
- make binary
|
2015-09-14 11:42:59 +00:00
|
|
|
|
2015-09-15 19:38:54 +00:00
|
|
|
test:
|
2015-09-14 09:28:33 +00:00
|
|
|
override:
|
2015-09-27 13:56:53 +00:00
|
|
|
- make test-unit
|
2015-10-29 13:41:32 +00:00
|
|
|
- make test-integration
|
2015-09-15 19:38:54 +00:00
|
|
|
post:
|
2015-09-27 13:56:53 +00:00
|
|
|
- make crossbinary
|
2015-09-15 19:38:54 +00:00
|
|
|
- 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-10-14 20:04:56 +00:00
|
|
|
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --prerelease ${VERSION} dist/
|
2015-09-14 09:28:33 +00:00
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker push ${REPO,,}:latest
|
2015-10-14 20:04:56 +00:00
|
|
|
- docker tag ${REPO,,}:latest ${REPO,,}:${VERSION}
|
|
|
|
- docker push ${REPO,,}:${VERSION}
|