-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 1.1 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
sudo: required
language: generic
services:
- docker
before_install:
- docker build -t bhmkyndryl/multiapp-docker-testbuild -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true bhmkyndryl/multiapp-docker-testbuild npm run test
after_success:
- docker build -t bhmkyndryl/multiapp-client ./client
- docker build -t bhmkyndryl/multiapp-nginx ./nginx
- docker build -t bhmkyndryl/multiapp-server ./server
- docker build -t bhmkyndryl/multiapp-worker ./worker
# 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 bhmkyndryl/multiapp-client
- docker push bhmkyndryl/multiapp-nginx
- docker push bhmkyndryl/multiapp-server
- docker push bhmkyndryl/multiapp-worker
# Hum, wake up please !
deploy:
provider: elasticbeanstalk
region: "eu-west-3"
app: "multiapp"
env: "Multiapp-env"
bucket_name: "elasticbeanstalk-eu-west-3-015806071036"
bucket_path: "multiapp-bucket"
on:
branch: main
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY