generated from Medici-Mansion/basic-template
-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (71 loc) · 2.23 KB
/
cloudtype.yaml
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
68
69
70
71
name: Deploy to cloudtype
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Connect deploy key
uses: cloudtype-github-actions/connect@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
ghtoken: ${{ secrets.GH_TOKEN }}
- name: Deploy
uses: cloudtype-github-actions/deploy@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
project: raymondanythings/catsnewyear
stage: main
yaml: |
name: shinnyang-server
app: node@20
options:
env:
- name: NODE_ENV
value: production
- name: DB_HOST
secret: DB_HOST
- name: DB_NAME
secret: DB_NAME
- name: DB_PORT
secret: DB_PORT
- name: DB_PWD
secret: DB_PWD
- name: DB_USER
secret: DB_USER
- name: EXPIRESTOKEN
secret: EXPIRESTOKEN
- name: GOOGLE_API_KEY
secret: GOOGLE_API_KEY
- name: GOOGLE_AUTH_CLIENT_ID
secret: GOOGLE_AUTH_CLIENT_ID
- name: GOOGLE_AUTH_CLIENT_SECRET
secret: GOOGLE_AUTH_CLIENT_SECRET
- name: GOOGLE_REDIRECT_URL
secret: GOOGLE_REDIRECT_URL
- name: KAKAO_CLIENT_ID
secret: KAKAO_CLIENT_ID
- name: KAKAO_REDIRECT_URL
secret: KAKAO_REDIRECT_URL
- name: PORT
secret: PORT
- name: RES_EXPIRESTOKEN
secret: RES_EXPIRESTOKEN
- name: ROUND
secret: ROUND
- name: SALT
secret: SALT
- name: TZ
secret: TZ
ports: 3000
install: npm i
build: npm run build
start: npm start
context:
git:
url: git@github.com:${{ github.repository }}.git
ref: ${{ github.ref }}