-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
45 lines (38 loc) · 1.08 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
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker"
override:
- sudo -H pip install docker-compose
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
test:
override:
- docker-compose build && docker-compose up
deployment:
staging:
branch: staging
commands:
- git config --global user.email "hello@neilellis.me"
- git config --global user.name "Neil Ellis"
- git reset HEAD --hard
- git clean -fd
- git checkout master
- git pull
- git merge staging -m "Auto merge"
- git push
- 'git commit -a -m "Promotion from staging" || :'
- "git tag ${release} || :"
- git push --tags
- git push origin master
production:
branch: master
commands:
- cd kong && docker build -t sillelien/docker-kong .
- docker push sillelien/docker-kong
development:
branch: dev
commands:
- cd kong && docker build -t sillelien/docker-kong:dev .
- docker push sillelien/docker-kong:dev