-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.02 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
language: generic
services:
- docker
before_install:
- docker build -t giuntalio/react-test -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true giuntalio/react-test npm test
after_success:
- docker build -t giuntalio/multi-client ./client
- docker build -t giuntalio/multi-nginx ./nginx
- docker build -t giuntalio/multi-server ./server
- docker build -t giuntalio/multi-worker ./worker
# Log in to the docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# Take those images and push them to docker hub
- docker push giuntalio/multi-client
- docker push giuntalio/multi-nginx
- docker push giuntalio/multi-server
- docker push giuntalio/multi-worker
deploy:
provider: elasticbeanstalk
region: 'eu-west-2'
app: 'multi-docker'
env: 'MultiDocker-env'
bucket_name: 'elasticbeanstalk-eu-west-2-525765963436'
bucket_path: 'docker-multi'
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY