forked from mattrayner/docker-lamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (32 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
33
34
35
machine:
services:
- docker
dependencies:
override:
- docker info
- docker-compose -f docker-compose.test.yml -p ci build
- docker-compose -f docker-compose.test.yml -p ci up -d
test:
override:
- 'docker logs -f ci_sut_1; echo "Exited with status code: $(docker wait ci_sut_1)"; exit $(docker wait ci_sut_1)'
deployment:
latest:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag ci_web1604:latest mattrayner/lamp:latest
- docker tag ci_web1604:latest mattrayner/lamp:latest-1604
- docker tag ci_web1404:latest mattrayner/lamp:latest-1404
- docker push mattrayner/lamp:latest
- docker push mattrayner/lamp:latest-1604
- docker push mattrayner/lamp:latest-1404
dev:
branch: develop
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag ci_web1604:latest mattrayner/lamp:dev
- docker tag ci_web1604:latest mattrayner/lamp:dev-1604
- docker tag ci_web1404:latest mattrayner/lamp:dev-1404
- docker push mattrayner/lamp:dev-1604
- docker push mattrayner/lamp:dev-1404
- docker push mattrayner/lamp:dev