-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (44 loc) ยท 1.54 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
language: node_js
node_js:
- "8"
cache:
directories:
- "node_modules"
# ํ
์คํธ ๋์ skipping tests ์ถ๋ ฅ
script:
- echo "skipping tests"
- npm run build
branches:
only:
- master
# s3๋ก ์์งํด์ ์ ์กํ๊ธฐ
before_deploy:
- zip -r myBlog-Front .nuxt package.json static before-deploy.sh after-deploy.sh appspec.yml
- mkdir -p deploy
- mv myBlog-Front.zip deploy/myBlog-Front.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY # Travis repo settings์ ์ค์ ๋ ๊ฐ
secret_access_key: $AWS_SECRET_KEY # Travis repo settings์ ์ค์ ๋ ๊ฐ
bucket: myblog-s3 # S3 ๋ฒํท
region: ap-northeast-2 # ์์์ ํํ์ (์์ธ)
skip_cleanup: true
acl: public_read
local_dir: deploy #zip๋ง ์ถ๊ฐํ๊ธฐ ์ํด s3์ ๋ฃ์ dir์ deploy ํด๋๋ก ์ง์ ํ๋ค.
wait-until-deployed: true
on:
repo: bactoria/Project-Blog-Nuxt #Github ์ฃผ์
branch: master
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # Travis repo settings์ ์ค์ ๋ ๊ฐ
secret_access_key: $AWS_SECRET_KEY # Travis repo settings์ ์ค์ ๋ ๊ฐ
bucket: myblog-s3 # S3 ๋ฒํท
key: myBlog-Front.zip # S3 ๋ฒํท์ ์ ์ฅ๋ myBlog.zip ํ์ผ์ EC2๋ก ๋ฐฐํฌ
bundle_type: zip
application: myBlog-codeDeploy # CodeDeploy ์ดํ๋ฆฌ์ผ์ด์
์ด๋ฆ
deployment_group: myBlog-group # CodeDeploy ๋ฐฐํฌ ๊ทธ๋ฃน
region: ap-northeast-2 # ์์์ ํํ์(์์ธ)
wait-until-deployed: true
on:
repo: bactoria/Project-Blog-Nuxt #Github ์ฃผ์
branch: master