-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 994 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
language: generic
sudo: required
services:
- docker
# Build test version of React project
# before_install:
# - docker build -t mario/node -f ./client/Dockerfile.dev ./client
# Run tests
# script:
# - docker run -e CI=true mario/node npm run test
# Build prod versions of all projects
after_success:
- docker build -t "$DOCKER_ID"/multi-client ./client
- docker build -t "$DOCKER_ID"/multi-nginx ./nginx
- docker build -t "$DOCKER_ID"/multi-api .
# 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 "$DOCKER_ID"/multi-client
- docker push "$DOCKER_ID"/multi-nginx
- docker push "$DOCKER_ID"/multi-api
deploy:
provider: elasticbeanstalk
region: "us-east-2"
app: "Y"
env: "Y-env"
bucket_name: "elasticbeanstalk-us-east-2-381492181945"
bucket_path: "y"
on:
branch: main
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY