-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
58 lines (48 loc) · 1.33 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
53
54
55
56
language: java
jdk:
- openjdk8
branches:
only:
- master
# Travis CI 서버의 Home
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script: "./gradlew clean build"
# CI 실행 완료 시 메일 전송
notifications:
email:
recipients:
before_deploy:
# - zip -r awsboard *
# - mkdir -p deploy
# - mv awsboard.zip deploy/awsboard.zip
- mkdir -p before-deploy
- 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
- mv before-deploy/before-deploy.zip deploy/awsboard.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: springboot-awsboard-build
region: ap-northeast-2
skip_cleanup: true
acl: private
local_dir: deploy
wait-until-deployed: true
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: springboot-awsboard-build
key: awsboard.zip
bundle_type: zip
application: awsboard-1 # 웹 콘솔에서 등록한 코드디플로이 애플리케이션
deployment_group: awsboard-codedeploy-group
region: ap-northeast-2
wait-until-deployed: true