-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (50 loc) · 2.04 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
sudo: required
services:
- docker
before_install:
- docker build -t atsangarides/docker-react-multicontainer-test -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true atsangarides/docker-react-multicontainer-test npm test
after_success:
- docker build -t atsangarides/multi-client ./client
- docker build -t atsangarides/multi-nginx ./nginx
- docker build -t atsangarides/multi-server ./server
- docker build -t atsangarides/multi-worker ./worker
# Log in to docker cli
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Push images to docker hub
- docker push atsangarides/multi-client
- docker push atsangarides/multi-nginx
- docker push atsangarides/multi-server
- docker push atsangarides/multi-worker
# jobs:
# include:
# - stage: build test image and run tests
# script:
# - docker build -t atsangarides/docker-react-multicontainer-test -f ./client/Dockerfile.dev ./client
# - docker run -e CI=true atsangarides/docker-react-multicontainer-test npm test
# - stage: Build prod images and push to docker hub
# script:
# - docker build -t atsangarides/multi-client ./client
# - docker build -t atsangarides/multi-nginx ./nginx
# - docker build -t atsangarides/multi-server ./server
# - docker build -t atsangarides/multi-worker ./worker
# # Log in to docker cli
# - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# # Push images to docker hub
# - docker push atsangarides/multi-client
# - docker push atsangarides/multi-nginx
# - docker push atsangarides/multi-server
# - docker push atsangarides/multi-worker
deploy:
# edge: true
provider: elasticbeanstalk
region: "eu-west-2"
app: "multi-docker"
env: "MultiDocker-env"
bucket_name: "elasticbeanstalk-eu-west-2-983627010696"
bucket_path: "multi-docker"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY