-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.18 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
language: generic
before_install:
- docker build -t fluzzykitten/docker-test -f ./complex/client/Dockerfile.dev ./complex/client
script:
- docker run -e CI=true fluzzykitten/docker-test npm run test -- --coverage
after_success:
- docker build -t fluzzykitten/multi-client -f ./complex/client/Dockerfile ./complex/client
- docker build -t fluzzykitten/multi-nginx -f ./complex/nginx/Dockerfile ./complex/nginx
- docker build -t fluzzykitten/multi-server -f ./complex/server/Dockerfile ./complex/server
- docker build -t fluzzykitten/multi-worker -f ./complex/worker/Dockerfile ./complex/worker
#log into docker CLI
- echo "DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
#push images
- docker push fluzzykitten/multi-client
- docker push fluzzykitten/multi-nginx
- docker push fluzzykitten/multi-server
- docker push fluzzykitten/multi-worker
#deploy:
# provider: elasticbeanstalk
# region: "us-east-2"
# app: "react-web"
# env: "ReactWeb-env-1"
# bucket_name: "elasticbeanstalk-us-east-2-165372868605"
# bucket_path: "react-web"
# on:
# branch: master
# access_key_id: $AWS_ACCESS_KEY
# secret_access_key: $AWS_SECRET_KEY