forked from bedirhan/wivet
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcircle.yml
44 lines (33 loc) · 903 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
36
37
38
39
40
41
42
43
44
machine:
services:
- docker
dependencies:
pre:
# Get the latest pip
- sudo pip install --upgrade pip
- pip --version
# Compose to test our setup
- sudo pip install docker-compose==1.2.0
- sudo pip install requests==2.5.2
# Debugging
- pip freeze
- docker info
- docker version
# Build the docker image
- sudo docker build -t andresriancho/wivet .
test:
override:
# Run the recently built image and mysql
- sudo docker-compose --project-name test up -d
- sleep 10
# Smoke test
- curl http://localhost:8899/ | grep body.php
deployment:
production:
branch: master
owner: andresriancho
commands:
# Save docker hub credentials to file
- sed "s/<EMAIL>/$DOCKER_EMAIL/;s/<AUTH>/$DOCKER_AUTH/" < ci/dockercfg.template > ~/.dockercfg
# Push it
- docker push andresriancho/wivet:latest