forked from devopsftw/vergilius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
28 lines (25 loc) · 881 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
machine:
python:
version: 2.7
services:
- docker
environment:
NGINX_HTTP2_PORT: 10443
NGINX_HTTP_PORT: 10080
DATA_PATH: /tmp/data
NGINX_CONFIG_PATH: /tmp/nginx
SECRET: 123
dependencies:
pre:
- pip install setuptools==17.1
- sudo add-apt-repository -y ppa:nginx/development; sudo apt-get update; sudo apt-get install nginx
- sudo chmod -R 0777 /var/log/nginx
test:
pre:
- docker run -d -p 8500:8500 e96tech/consul-server -advertise 127.0.0.1 -bootstrap -dc circle -domain local
- curl --retry 10 --retry-delay 5 -v http://localhost:8500
deployment:
dockerhub:
branch: master
commands:
- 'curl -H "Content-Type: application/json" --data "{\"source_type\": \"Branch\", \"source_name\": \"master\"}" -X POST https://registry.hub.docker.com/u/devopsftw/vergilius/trigger/ea3f932c-49b9-47e8-af0c-ec1d8615cda4/'