-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (41 loc) · 1.06 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
branches:
only:
- main
language: node_js
node_js:
- 15.3.0
cache:
directories:
- node_modules
script:
- yarn test
before_deploy: # 배포전 작업
- rm -rf node_modules
- zip -r frontend * .[^.]*
- mkdir -p deploy
- mv frontend.zip deploy/frontend.zip
deploy:
- provider: s3
bucket: blog.dragonsuperf.com
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
region: ap-northeast-2 # us-east-1 region이 아니라면 명시해주어야함
skip_cleanup: true
local_dir: deploy
wait-until-deployed: true
on:
repo: dragonsuperf/kakao-cloud-portfolio
branch: main
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: blog.dragonsuperf.com
key: frontend.zip
bundle_type: zip
application: bitdumb
deployment_group: bitdumb-frontend-deploy-group
region: ap-northeast-2 # us-east-1 region이 아니라면 명시해주어야함
wait-until-deployed: true
on:
repo: dragonsuperf/kakao-cloud-portfolio
branch: main