-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 1.05 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
37
38
sudo: required
services:
- docker
before_install:
- docker build -t carstendirks/react-test -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true carstendirks/react-test npm test
after_success:
- docker build -t carstendirks/multi-client ./client
- docker build -t carstendirks/multi-nginx ./nginx
- docker build -t carstendirks/multi-server ./server
- docker build -t carstendirks/multi-worker ./worker
#login to docker cli
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
#Push to dockerhub
- docker push carstendirks/multi-client
- docker push carstendirks/multi-nginx
- docker push carstendirks/multi-server
- docker push carstendirks/multi-worker
deploy:
edge: true
provider: elasticbeanstalk
region: us-east-2
app: multi-docker
env: MultiDocker-env
bucket_name: elasticbeanstalk-us-east-2-065116267019
bucket_path: docker-multi
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY