-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
54 lines (47 loc) · 1.54 KB
/
.travis.yml
File metadata and controls
54 lines (47 loc) · 1.54 KB
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
53
54
language: java
jdk:
- openjdk8
branches:
only:
- master
# Travis CI 서버의 Home
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script: "./gradlew clean build"
before_deploy:
- zip -r Springboot-Webservice *
- mkdir -p deploy
- mv Springboot-Webservice.zip deploy/Springboot-Webservice.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY # Travis repo setting에 설정된 값
secret_access_key: $AWS_SECRET_KEY # Travis repo setting에 설정된 값
bucket: springboot-webservice-deploy-jaewon
region: ap-northeast-2
skip_cleanup: true
acl: public_read
local_dir: deploy #before_deploy 에서 생성한 디렉터리
wait-until-deployed: true
on:
repo: jaewon0913/springboot
branch: master
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # Travis repo setting에 설정된 값
secret_access_key: $AWS_SECRET_KEY # Travis repo setting에 설정된 값
bucket: springboot-webservice-deploy-jaewon
key: Springboot-Webservice.zip # S3 버킷에 저장된 springboot-webservice.zip 파일을 EC2로 배포
bundle_type: zip
application: Springboot-Webservice # 웹 콘솔에서 등록한 CodeDeploy 어플리케이션
deployment_group: Springboot-Webservice-Group # 웹 콘솔에서 등록한 CodeDeploy 배포 그룹
region: ap-northeast-2
wait-until-deployed: true
on:
repo: jaewon0913/springboot
branch: master
# CI 실행 완료시 메일로 알람
notifications:
email:
recipients:
- jaewon9937@gmail.com