-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (34 loc) · 1.17 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:
# Only build client here as a dev container because we only have test for the client right now
- docker build -t edpsyk/react-test -f ./client/Dockerfile.dev ./client
script:
# Run cient tests. All scripts in this sectin must ass for after_success to run
- docker run -e CI=true edpsyk/react-test npm test
after_success:
# Build production versions of all containers
- docker build -t edpsyk/multi-client ./client
- docker build -t edpsyk/multi-nginx ./nginx
- docker build -t edpsyk/multi-server ./server
- docker build -t edpsyk/multi-worker ./worker
# Login to docker hub and push new containers
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
- docker push edpsyk/multi-client
- docker push edpsyk/multi-nginx
- docker push edpsyk/multi-server
- docker push edpsyk/multi-worker
deploy:
provider: elasticbeanstalk
region: us-east-2
app: multi-docker
env: MultiDocker-env
bucket_name: elasticbeanstalk-us-east-2-748550924769
bucket_path: docker-multi
on:
branch: master
access_key_id:
secure: $AWS_ACCESS_KEY
secret_access_key:
secure: $AWS_SECRET_KEY