forked from FredHutch/Oncoscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
37 lines (32 loc) · 1.12 KB
/
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
36
37
machine:
services:
- docker
dependencies:
override:
- docker version
- docker build -t fredhutch/oncoscape:$CIRCLE_SHA1 .
test:
override:
- docker run -d -p 80:80 --name oncoscape-$CIRCLE_SHA1 fredhutch/oncoscape:$CIRCLE_SHA1; sleep 120
deployment:
master:
branch: master
commands:
- docker tag fredhutch/oncoscape:$CIRCLE_SHA1 fredhutch/oncoscape:latest
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push fredhutch/oncoscape:latest; sleep 60
- curl -X POST $DEPLOY_DOCKER_PROD
develop:
branch: develop
commands:
- docker tag fredhutch/oncoscape:$CIRCLE_SHA1 fredhutch/oncoscape:develop
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push fredhutch/oncoscape:develop; sleep 60
- curl -X POST $DEPLOY_DOCKER_DEVELOP
test:
branch: test
commands:
- docker tag fredhutch/oncoscape:$CIRCLE_SHA1 fredhutch/oncoscape:test
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push fredhutch/oncoscape:test; sleep 60
- curl -X POST $DEPLOY_DOCKER_TEST