-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
36 lines (30 loc) · 942 Bytes
/
.travis.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
sudo: required
# Install Docker
services:
- docker
# Execute logic
script:
- echo "Hello Students!"
after_success:
# Build all the docker files
- docker build -t adithya01docker/zomato-shapeai-client ./client
- docker build -t adithya01docker/zomato-shapeai-server ./server
- docker build -t adithya01docker/zomato-shapeai-nginx ./nginx
# log in docker
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# push to docker hub
- docker push adithya01docker/zomato-shapeai-client
- docker push adithya01docker/zomato-shapeai-server
- docker push adithya01docker/zomato-shapeai-nginx
deploy:
# deploy to AWS EBS
provider: elasticbeanstalk
region: ap-south-1
app: Zomato-clone-shapeai
env: Zomatocloneshapeai-env
bucket_name: elasticbeanstalk-ap-south-1-701994403871
bucket_path: zomatoshapeai2
on:
branch: master
access_key_id: $AWS_KEY
secret_access_key: $AWS_SECRET