-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 1.06 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
language: generic
sudo: required
services:
- docker
before_install:
- docker build -t huiqzhang619/test-react -f ./client/Dockerfile.dev ./client
scripts:
- docker run -e CI=true huiqzhang619/test-react npm test
after_success:
- docker build -t huiqzhang619/multi-client ./client
- docker build -t huiqzhang619/multi-nginx ./nginx
- docker build -t huiqzhang619/multi-server ./server
- docker build -t huiqzhang619/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 huiqzhang619/multi-client
- docker push huiqzhang619/multi-nginx
- docker push huiqzhang619/multi-server
- docker push huiqzhang619/multi-worker
deploy:
edge: true
provider: elasticbeanstalk
region: "cn-northwest-1"
app: "zhang-docker"
env: "ZhangDocker-env"
bucket_name: "elasticbeanstalk-cn-northwest-1-796401082536"
bucket_path: "zhang-docker"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY