1
0
mirror of https://github.com/containrrr/watchtower.git synced 2024-12-15 09:14:13 +02:00
watchtower/circle.yml
2017-02-02 21:25:14 +01:00

31 lines
695 B
YAML

machine:
services:
- docker
environment:
IS_RELEASE: $(if [ "$CIRCLE_TAG" != "" ] ; then echo release; else echo ci; fi;)
BUILD_IMAGE: v2tec/gobuilder:0.1.0_go1.7.4-glide0.12.3-goreleaser0.6.2
dependencies:
override:
- git fetch --tags
- docker pull $BUILD_IMAGE
compile:
override:
- docker run -v "$PWD":/src -e GITHUB_TOKEN=$GITHUB_TOKEN $BUILD_IMAGE $IS_RELEASE $CIRCLE_BRANCH-$CIRCLE_SHA1
test:
override:
- echo "Tests included in compile step."
deployment:
ci:
branch: /.*/
commands:
- cp -r ./dist/* $CIRCLE_ARTIFACTS
release:
tag: /v[0-9]+(\.[0-9]+)*/
owner: v2tec
commands:
- cp -r ./dist/* $CIRCLE_ARTIFACTS