-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) ยท 2.24 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
50
51
52
language: java
jdk:
- openjdk8
branches: #Travis CI๋ฅผ ์ด๋ ๋ธ๋์น๊ฐ ํธ์๋ ๋ ์ํํ ์ง ์ง์
only:
- master
#Travis CI ์๋ฒ์ Home
cache: #๊ทธ๋ ์ด๋ค์ ํตํด ์์กด์ฑ์ ๋ฐ๊ฒ ๋๋ฉด ์ด๋ฅผ ํด๋น ๋๋ ํ ๋ฆฌ์ ์บ์ํ์ฌ, ๊ฐ์ ์์กด์ฑ์ ๋ค์ ๋ฐฐํฌ๋๋ถํฐ ๋ค์ ๋ฐ์ง ์๋๋ก ์ค์
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script: "./gradlew clean build" #master ๋ธ๋์น์ ํธ์๋์์๋ ์ํํ๋ ๋ช
๋ น์ด
before_deploy: #deploy ๋ช
๋ น์ด๊ฐ ์คํ๋๊ธฐ ์ ์ํ
- mkdir -p before-deploy #zip์ ํฌํจ์ํฌ ํ์ผ๋ค์ ๋ด์ ๋๋ ํ ๋ฆฌ ์์ฑ
- cp scripts/*.sh before-deploy/
- cp appspec.yml before-deploy/
- cp build/libs/*.jar before-deploy/
- cd before-deploy && zip -r before-deploy * #before-deploy๋ก ์ด๋ ํ ์ ์ฒด ์์ถ
- cd ../ && mkdir -p deploy #์์ ๋๋ ํ ๋ฆฌ๋ก ์ด๋ํ deploy ๋๋ ํ ๋ฆฌ ์์ฑ
- mv before-deploy/before-deploy.zip deploy/springboot-webservice.zip #deploy๋ก zipํ์ผ ์ด๋
deploy: #์ธ๋ถ ์๋น์ค์ ์ฐ๋๋ ํ์๋ค ์ ์ธ
- provider: s3
access_key_id: $AWS_ACCESS_KEY #Travis repo settings์ ์ค์ ๋ ๊ฐ
secret_access_key: $AWS_SECRET_KEY #Travis repo settings์ ์ค์ ๋ ๊ฐ
bucket: springboot-webservice-build-hyeran #S3 ๋ฒํท
region: ap-northeast-2
skip_cleanup: true
acl: private #zip ํ์ผ ์ ๊ทผ
local_dir: deploy #before_deploy์์ ์์ฑํ ๋๋ ํ ๋ฆฌ์ ์์นํ ํ์ผ๋ค๋ง S3๋ก ์ ์ก
wait-until-deployed: true
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY #Travis repo settings์ ์ค์ ๋ ๊ฐ
secret_access_key: $AWS_SECRET_KEY #Travis repo settings์ ์ค์ ๋ ๊ฐ
bucket: springboot-webservice-build-hyeran #S3 ๋ฒํท
key: springboot-webservice.zip #๋น๋ ํ์ผ ์์ถํด์ ์ ๋ฌ
bundle_type: zip #์์ถ ํ์ฅ์
application: springboot-webservice #์น ์ฝ์์์ ๋ฑ๋กํ CodeDeploy ์ ํ๋ฆฌ์ผ์ด์
deployment_group: springboot-webservice-group #์น ์ฝ์์์ ๋ฑ๋กํ CodeDeploy ๋ฐฐํฌ ๊ทธ๋ฃน
region: ap-northeast-2
wait-until-deployed: true
#CI ์คํ ์๋ฃ์ ๋ฉ์ผ๋ก ์๋
notifications: #Travis CI ์คํ ์๋ฃ์ ์๋์ผ๋ก ์๋
email:
recipients: