-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 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
sudo: required
serivces:
- docker
before_install:
- docker build -t ankurrathore/react-test -f ./clients/Dockerfile.dev ./clients
script:
- docker run -e CI=true ankurrathore/react-test npm test -- --coverage
after_success:
- docker build -t ankurrathore/multi-clients ./clients
- docker build -t ankurrathore/multi-nginx ./nginx
- docker build -t ankurrathore/multi-server ./server
- docker build -t ankurrathore/multi-worker ./worker
# Login to the Docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Pushing the images to Docker Hub
- docker push ankurrathore/multi-clients
- docker push ankurrathore/multi-nginx
- docker push ankurrathore/multi-server
- docker push ankurrathore/multi-worker
deploy:
provider: elasticbeanstalk
region: "ap-south-1"
app: "multiDocker"
env: "MultiDockerEnv"
bucket_name: "elasticbeanstalk-ap-south-1-071239014041"
bucket_path: "docker-multi"
on:
branch: master
access_key_id:
secure: $AWS_ACCESS_KEY
secret_access_key:
secure: "$AWS_SECRET_KEY"