-
Notifications
You must be signed in to change notification settings - Fork 4
/
circle.yml
32 lines (29 loc) · 1.18 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
machine:
timezone:
Asia/Taipei
services:
- docker
dependencies:
pre:
- sudo apt-get install python-dev && sudo pip install --upgrade docker-compose==1.8.0
test:
pre:
- docker build --no-cache=true -t edgepro/dummy-psmbtcp:x86 -f test/dummy-psmbtcp/Dockerfile.x86 test/dummy-psmbtcp/.
- docker build --no-cache=true -t edgepro/modbusd:x86 -f dockerfile/Dockerfile.x86 .
override:
- docker-compose -f dockerfile/docker-compose.circle rm
#- docker-compose -f dockerfile/docker-compose.circle pull
- docker-compose -f dockerfile/docker-compose.circle build --no-cache
- docker-compose -f dockerfile/docker-compose.circle up --abort-on-container-exit
post:
- docker-compose -f dockerfile/docker-compose.circle stop
- docker-compose -f dockerfile/docker-compose.circle rm -f -a
# publish to dockerhub
deployment:
hub:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag edgepro/modbusd:x86 edgepro/modbusd:latest
- docker push edgepro/modbusd:latest
- docker push edgepro/modbusd:x86