forked from microscaling/imagelayers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (31 loc) · 982 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
29
30
31
32
33
34
35
machine:
services:
- docker
general:
artifacts:
- "imagelayers-api" # the built binary
dependencies:
override:
# This is a no-op to get it to not try and build our Go app (and possibly
# fail due to Godep stuff).
- "true"
test:
override:
- docker run -v $(pwd):/src centurylink/golang-tester
deployment:
hub:
branch: master
owner: CenturyLinkLabs
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t centurylink/imagelayers-api:qa .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push centurylink/imagelayers-api:qa
Production:
branch: release
owner: CenturyLinkLabs
commands:
- docker run -v $(pwd):/src centurylink/golang-builder:latest
- docker build -t centurylink/imagelayers-api:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push centurylink/imagelayers-api:latest