-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
54 lines (54 loc) · 1.29 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:
- main
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.gradle"
script: "./gradlew clean build"
notifications:
email:
recipients:
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/42Bobs.zip
deploy:
- provider: s3
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
bucket: 42bobs-build
region: ap-northeast-2
skip_cleanup: true
acl: private
local_dir: deploy
wait_until_deployed: true
on:
branch: main
- provider: codedeploy
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
bucket: 42bobs-build
key: 42Bobs.zip
bundle_type: zip
application: 42Bobs
deployment_group: 42Bobs-group
region: ap-northeast-2
wait-until-deployed: true
on:
branch: main
before_install:
- openssl aes-256-cbc -K $encrypted_5c967de37745_key -iv $encrypted_5c967de37745_iv
-in application.tar.enc -out application.tar -d
- tar xvf application.tar
- mv application.yml src/main/resources
- ls src/main/resources/
- cat src/main/resources/application.yml