Skip to content

Commit b3df439

Browse files
committed
Added deploy section to travis.yml
1 parent 4529742 commit b3df439

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ after_success:
2121
- docker push shonry27/multi-server
2222
- docker push shonry27/multi-worker
2323

24+
deploy:
25+
provider: elasticbeanstalk
26+
region: us-east-1
27+
app: multi-docker
28+
env: MultiDocker-env
29+
bucket_name: elasticbeanstalk-us-east-1-032386328462
30+
bucket_path: docker-multi
31+
on:
32+
branch: master
33+
access_key_id: $AWS_ACCESS_KEY
34+
secret_access_key:
35+
secure: $AWS_SECRET_KEY

Dockerrun.aws.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"AWSEBDockerrunVersion": 2,
3+
"containerDefinitions": [
4+
{
5+
"name": "client",
6+
"image": "shonry27/multi-client",
7+
"hostname": "client",
8+
"essential": false
9+
},
10+
11+
{
12+
"name": "api",
13+
"image": "shonry27/multi-server",
14+
"hostname": "api",
15+
"essential": false
16+
17+
},
18+
19+
{
20+
"name": "worker",
21+
"image": "shonry27/multi-worker",
22+
"hostname": "worker",
23+
"essential": false
24+
25+
},
26+
27+
{
28+
"name": "nginx",
29+
"image": "shonry27/multi-nginx",
30+
"hostname": "nginx",
31+
"essential": true,
32+
"portMappings": [
33+
{
34+
"hostPort": 80,
35+
"containerPort": 80
36+
}
37+
],
38+
39+
"links": ["client","server"]
40+
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)