forked from containrrr/watchtower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
28 lines (27 loc) · 803 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
26
27
28
version: 2
jobs:
build:
docker:
- image: v2tec/gobuilder:0.5.0_go1.7.4-glide0.12.3-goreleaser0.59.0-docker17.05.0
working_directory: /src
steps:
- checkout
- setup_remote_docker:
version: 17.05.0-ce
- run: git fetch --tags
- run: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
IS_RELEASE=$(if [ "$CIRCLE_TAG" != "" ] ; then echo release; else echo ci; fi;)
/build.sh $IS_RELEASE || exit 1
chmod 755 /src/dockerfile/push_containers.sh
if [ "$CIRCLE_TAG" != "" ] ; then /src/dockerfile/push_containers.sh $CIRCLE_TAG; fi;
- store_artifacts:
path: /src/dist/
workflows:
version: 2
build-deploy:
jobs:
- build:
filters:
tags:
only: /.*/