-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (53 loc) · 2.14 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
language: java
jdk:
- openjdk11
branches:
only:
- master
before_install:
- mkdir -p ./src/main/resources
- mkdir -p ./src/test/resources
- openssl aes-256-cbc -K $encrypted_key -iv $encrypted_iv
-in application.yml.enc -out ./src/main/resources/application.yml -d
- openssl aes-256-cbc -K $encrypted_key -iv $encrypted_iv
-in application-prod.yml.enc -out ./src/main/resources/application-prod.yml -d
- openssl aes-256-cbc -K $encrypted_key -iv $encrypted_iv
-in application-test.yml.enc -out ./src/test/resources/application.yml -d
- chmod +x gradlew
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.gradle"
script: "./gradlew clean build"
before_deploy:
- 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 *
- cd ../ && mkdir -p deploy
- mv before-deploy/before-deploy.zip deploy/unigram-webservice.zip
deploy:
- provider: s3
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
bucket: unigram
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: unigram
key: unigram-webservice.zip
bundle_type: zip
application: unigram-webservice
deployment_group: unigram-deploy-group
region: ap-northeast-2
wait_until_deployed: true
notifications:
slack:
rooms:
secure: afMiBuzQ/hjO6QQExmX81Ykscuoi4z2Afd3nGEqhdav/llgztPMPKIHPtUmzCgc6PtD1f3jFRMmxlUDCJAlz+4CVJLCGjSWTvKDEXRQLDuuhpSXlquwbVcOMAlA/Xluqyr4jlz/r1JZHdvJFljR/Umimptn+M9/K9jJTzGYvIGtrM3242scPEZbO/Hpotcm2fqnQGW8RMpFCRsn6Tr+Qji4vY6LVFbWzxrxkOkIb2TLCU4zxJ6R3westxjpO+AxYtAM1A2QfatUHzZ2MHUgWhqCIPxIRTjnoyVfollP+E3rG8roT1iWaq7IdmHCJ/vvioU2ith2hSgHQvoYCYo/6whmwIrchdCzqFGv/+QaEeXyCRwV5w9A+nNhA0W1bq0o1dRqq7IAWhuDdbrPxAyx0aAxgaebwxYXPY32e4zI0m0NjI6OS6SSYOrub1wGCHTF1JfCIe8uy3U4c7GMYtNXiKN8BylXDqbMOn/MAKZ482FuOE/nb2jog3E0+Wih7V+0eKW8z5Y4FZyiKwxqINqv4XTh3+HD/HPEYlk6gMYkkwHvncNSL3Ox2HE7/d81GIQgexwE6Sqgd689SKQ99S1gzw3vYdHcK1bV+FbHa3a+E1pa4HiX3MNFZseym/6i/ucW4xOSYD/EdEKRHzU10EQTTe2GFcfhFqLqswaO7rflkdTQ=