-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (28 loc) · 976 Bytes
/
.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
language: generic
sudo: required
services:
- docker
before_install:
- docker build -t kiss0104040/react-test-app -f ./frontend/Dockerfile.dev ./frontend
script:
- docker run -e CI=true kiss0104040/react-test-app npm run test
after_success:
- docker build -t kiss0104040/docker-frontend ./frontend
- docker build -t kiss0104040/docker-backend ./backend
- docker build -t kiss0104040/docker-nginx ./nginx
- echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_ID" --password-stdin
- docker push kiss0104040/docker-frontend
- docker push kiss0104040/docker-backend
- docker push kiss0104040/docker-nginx
deploy:
provider: elasticbeanstalk
edge: true
region: 'ap-northeast-2'
app: 'docker-fullstack-app'
env: 'Dockerfullstackapp-env'
bucket_name: 'elasticbeanstalk-ap-northeast-2-05501921245'
bucket_path: 'docker-fullstack-app'
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_ACCESS_KEY