-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 945 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
services:
- docker
notifications:
email: false
before_install:
- docker build -t nursh/restaurant-application -f ./client/Dockerfile.dev ./client
script:
- docker run nursh/restaurant-application npm test -- --coverage
after_success:
- docker build -t nursh/resapp-client ./client
- docker build -t nursh/resapp-nginx ./nginx
- docker build -t nursh/resapp-server ./server
# login to docker
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# push images to docker hub
- docker push nursh/resapp-client
- docker push nursh/resapp-nginx
- docker push nursh/resapp-server
deploy:
provider: elasticbeanstalk
region: us-east-2
app: Ruby-Continental
env: RubyContinental-env
bucket_name: elasticbeanstalk-us-east-2-360884463829
bucket_path: Ruby-Continental
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key:
secure: $AWS_SECRET_KEY