-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 1.24 KB
/
.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
before_install:
- docker build -t frperezr/react-test -f ./src/web-app/Dockerfile ./src/web-app
script:
- docker run -e CI=true frperezr/react-test npm test -- --coverage
after_success:
- docker build -t frperezr/banco-ripley-webapp ./src/web-app
- docker build -t frperezr/banco-ripley-nginx ./src/nginx
- docker build -t frperezr/banco-ripley-auth-api ./src/auth-api
- docker build -t frperezr/banco-ripley-gateway-api ./src/gateway-api
- docker build -t frperezr/banco-ripley-products-api ./src/products-api
# Login in to the Docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Take those images and push them to docker hub
- docker push frperezr/banco-ripley-webapp
- docker push frperezr/banco-ripley-nginx
- docker push frperezr/banco-ripley-auth-api
- docker push frperezr/banco-ripley-gateway-api
- docker push frperezr/banco-ripley-products-api
# deploy:
# provider: elasticbeanstalk
# region: us-east-2
# app: ripley_test
# env: RipleyTest-env
# bucket_name: elasticbeanstalk-us-east-2-052934572495
# bucket_path: docker
# on:
# branch: development
# access_key_id: $AWS_ACCESS_KEY
# secret_access_key:
# secure: $AWS_SECRET_KEY