-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (43 loc) · 1.01 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
language: node_js
node_js:
- "14.17"
before_install:
- npm install -g yarn
branches:
only:
- main
before_deploy:
- rm -rf node_modules
- rm -rf yarn.lock
- zip -r Calories-Backend *
- mkdir -p deploy
- mv Calories-Backend.zip deploy/Calories-Backend.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: calories-cd
region: ap-northeast-2
skip_cleanup: true
local_dir: deploy
wait-until-deployed: true
on:
repo: dennis9352/Calog-Backend
branch: main
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: calories-cd
key: Calories-Backend.zip
bundle_type: zip
application: calories-backend-cicd-codedeploy-service
deployment_group: cicd-deploy-group
region: ap-northeast-2
wait-until-deployed: true
on:
repo: dennis9352/Calog-Backend
branch: main
notifications:
email:
recipients:
- dennis9352@gmail.com