-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (30 loc) · 1.03 KB
/
.travis.yml
File metadata and controls
34 lines (30 loc) · 1.03 KB
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
sudo: required
services:
-docker
before_install:
- docker build -t renovatiodoc/react-test -f ./client/Dockerfile.dev ./client
script:
- docker run renovatiodoc/react-test npm test -- --coverage
after_success:
- docker build -t renovatiodoc/multi-client ./client
- docker build -t renovatiodoc/multi-nginx ./nginx
- docker build -t renovatiodoc/multi-server ./server
- docker build -t renovatiodoc/multi-worker ./worker
# Log 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 renovatiodoc/multi-client
- docker push renovatiodoc/multi-nginx
- docker push renovatiodoc/multi-server
- docker push renovatiodoc/multi-worker
deploy:
provider: elasticbeanstalk
region: us-east-2
app: multi-docker-react
env: MultiDockerReact-env
bucket_name: elasticbeanstalk-us-east-2-597814523986
bucket_path: multi-docker-react
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY