-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcircle.yml
More file actions
44 lines (39 loc) · 1.5 KB
/
circle.yml
File metadata and controls
44 lines (39 loc) · 1.5 KB
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
# The following are required to setup in the Circle's UI:
#
# Environment Variables:
# DOCKER_USER: username for hub.docker.com
# DOCKER_PASS: password for hub.docker.com
# DOCKER_EMAIL: email address for hub.docker.com
#
machine:
pre:
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
- sudo chmod 0755 /usr/bin/docker
services:
- docker
checkout:
post:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
dependencies:
override:
- docker build -f v2/Dockerfile -t blitzagency/python-web:2 v2/
- docker build -f v2/geo/Dockerfile -t blitzagency/python-web:2-geo v2/geo
- docker build -f v3/Dockerfile -t blitzagency/python-web:3 v3/
- docker build -f v3/jessie/Dockerfile -t blitzagency/python-web:3-jessie v3/jessie
- docker build -f v3/geo/Dockerfile -t blitzagency/python-web:3-geo v3/geo
test:
override:
- docker run blitzagency/python-web:2 python --version
- docker run blitzagency/python-web:2-geo python --version
- docker run blitzagency/python-web:3 python --version
- docker run blitzagency/python-web:3-jessie python --version
- docker run blitzagency/python-web:3-geo python --version
deployment:
master:
branch: master
commands:
- docker push blitzagency/python-web:2
- docker push blitzagency/python-web:2-geo
- docker push blitzagency/python-web:3
- docker push blitzagency/python-web:3-jessie
- docker push blitzagency/python-web:3-geo