-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (57 loc) ยท 1.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: java
jdk:
- openjdk11
git:
submodules: false
branches:
only:
- main
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script: "./gradlew clean build"
before_install:
- |
cat >~/.netrc <<!
machine github.com
login $GITHUB_TOKEN
!
- git submodule update --init --recursive
- cd ./backend/
- chmod +x gradlew
before_deploy:
- zip -r oclothes *
- mkdir -p deploy
- mv oclothes.zip deploy/oclothes.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
github-token: $GITHUB_TOKEN
bucket: oclothes-deploy
region: ap-northeast-2
skip_cleanup: true
acl: public_read
wait-until-deployed: true
local_dir: deploy
on:
repo: today-clothes/my-closet
branch: main
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: oclothes-deploy
key: oclothes.zip
bundle_type: zip
application: todayclothes-service
deployment_group: todayclothes-service-group
region: ap-northeast-2
wait-until-deployed: true
on:
repo: today-clothes/my-closet
branch: main
notifications:
email:
recipients: