-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (31 loc) · 1023 Bytes
/
.travis.yml
File metadata and controls
35 lines (31 loc) · 1023 Bytes
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
language: generic
sudo: required
services:
- docker
before_install:
- docker build -t k3snoob/react-test -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true k3snoob/react-test npm run test
after_success:
- docker build -t k3snoob/multi-client ./client
- docker build -t k3snoob/multi-nginx ./nginx
- docker build -t k3snoob/multi-server ./server
- docker build -t k3snoob/multi-worker ./worker
# Log in to the docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Take those images and push to docker hub
- docker push k3snoob/multi-client
- docker push k3snoob/multi-nginx
- docker push k3snoob/multi-server
- docker push k3snoob/multi-worker
deploy:
provider: "elasticbeanstalk"
region: "eu-west-1"
app: "multi-docker"
env: "Multidocker-env"
bucket_name: "elasticbeanstalk-eu-west-1-944429017930"
bucket_path: "docker-multi"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY