-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
58 lines (48 loc) ยท 1.39 KB
/
.travis.yml
File metadata and controls
58 lines (48 loc) ยท 1.39 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
55
56
57
58
language: node_js
node_js:
- 12.18.3
brances:
only:
- develop
before_install:
- cd server
- openssl aes-256-cbc -K $encrypted_3b9f0b9d36d1_key -iv $encrypted_3b9f0b9d36d1_iv
-in secrets.tar.enc -out secrets.tar -d
- tar xvf secrets.tar
before_deploy:
- rm -rf node_modules
# - mkdir -p before-deploy
# - cp scripts/*.sh before-deploy/
# - cp appspec.yml before-deploy/
#- cd before-deploy && zip -r praise-server * # praise-server ์ด๋ฆ์ผ๋ก zip ํ์ผ์ ๋ง๋ฌ
- cd ../../ && zip -r praise-server *
#- cd ../ && mkdir -p deploy
- cd Praise-Server/ && mkdir -p deploy
- mv ./../praise-server.zip deploy/praise-server.zip
deploy:
- provider: s3
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
overwrite: true
bucket: gyunny
region: ap-northeast-2
skip_cleanup: true
acl: private
local_dir: deploy # ์์ before_deploy ์์ mkdir ํ ๋๋ ํ ๋ฆฌ ์ด๋ฆ๊ณผ ๊ฐ์์ผ ํจ
wait-until-deployed: true
- provider: codedeploy
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
bucket: gyunny
key: praise-server.zip # S3 ๋ฒํท ๋ด๋ถ์ ์กด์ฌํ๋ ์ด๋ฆ
bundle_type: zip
application: Gyun
deployment_group: Gyun-Group
region: ap-northeast-2
wait-until-deployed: true
on:
branch: develop
notification:
email:
recipients:
- wjdrbs966@naver.com