-
Notifications
You must be signed in to change notification settings - Fork 4
/
circle.yml
64 lines (55 loc) · 2.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# https://circleci.com/docs/docker
machine:
services:
- docker
dependencies:
override:
- docker info
- docker images
- docker build -t tacstack app/
- docker build -t mysqldatavol appdata/
- docker build -t ftpdatavol ftpdata/
- docker images
test:
override:
- script/test
# https://circleci.com/docs/configuration#deployment
# https://circleci.com/docs/environment-variables
deployment:
master:
branch: master
owner: ISEexchange
commands:
- docker login -e . -u $DOCKER_USER -p $DOCKER_PASS quay.io
- docker tag tacstack quay.io/iseexchange/tacstack:latest
- docker push quay.io/iseexchange/tacstack:latest
- docker tag tacstack quay.io/iseexchange/tacstack:${CIRCLE_SHA1:0:7}
- docker push quay.io/iseexchange/tacstack:${CIRCLE_SHA1:0:7}
- docker logout
- docker login -e . -u $DOCKER_USER -p $MYSQL_PASS quay.io
- docker tag mysqldatavol quay.io/iseexchange/tacstack_mysqldata:latest
- docker push quay.io/iseexchange/tacstack_mysqldata:latest
- docker tag mysqldatavol quay.io/iseexchange/tacstack_mysqldata:${CIRCLE_SHA1:0:7}
- docker push quay.io/iseexchange/tacstack_mysqldata:${CIRCLE_SHA1:0:7}
- docker logout
- docker login -e . -u $DOCKER_USER -p $FTP_PASS quay.io
- docker tag ftpdatavol quay.io/iseexchange/tacstack_ftpdata:latest
- docker push quay.io/iseexchange/tacstack_ftpdata:latest
- docker tag ftpdatavol quay.io/iseexchange/tacstack_ftpdata:${CIRCLE_SHA1:0:7}
- docker push quay.io/iseexchange/tacstack_ftpdata:${CIRCLE_SHA1:0:7}
- docker logout
pulls:
branch: /^(?!master).*$/
commands:
- docker login -e . -u $DOCKER_USER -p $DOCKER_PASS quay.io
- docker tag tacstack quay.io/iseexchange/tacstack:${CIRCLE_USERNAME}_${CIRCLE_BRANCH/\//_}
- docker push quay.io/iseexchange/tacstack:${CIRCLE_USERNAME}_${CIRCLE_BRANCH/\//_}
- docker logout
- docker login -e . -u $DOCKER_USER -p $MYSQL_PASS quay.io
- docker tag mysqldatavol quay.io/iseexchange/tacstack_mysqldata:${CIRCLE_USERNAME}_${CIRCLE_BRANCH/\//_}
- docker push quay.io/iseexchange/tacstack_mysqldata:${CIRCLE_USERNAME}_${CIRCLE_BRANCH/\//_}
- docker logout
- docker login -e . -u $DOCKER_USER -p $FTP_PASS quay.io
- docker tag ftpdatavol quay.io/iseexchange/tacstack_ftpdata:${CIRCLE_USERNAME}_${CIRCLE_BRANCH/\//_}
- docker push quay.io/iseexchange/tacstack_ftpdata:${CIRCLE_USERNAME}_${CIRCLE_BRANCH/\//_}
- docker logout