forked from konfig-dev/konfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
371 lines (354 loc) · 10.7 KB
/
render.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
#####
# Documentation
# Redwood: https://render.com/docs/deploy-redwood
# YAML (all config values): https://render.com/docs/yaml-spec
#####
services:
- name: splitit-web-polling
type: cron
env: node
schedule: "*/30 * * * *"
buildCommand: npm init -y; npm install konfig-cli
repo: https://github.com/konfig-dev/splitit-web-sdks
startCommand: ./node_modules/.bin/konfig pull && ./node_modules/.bin/konfig push -o konfig-dev -r splitit-web-sdks -s swagger.json
- name: composio-polling
type: cron
env: node
schedule: "*/30 * * * *"
buildCommand: npm init -y; npm install konfig-cli
repo: https://github.com/konfig-dev/composio-sdks
startCommand: ./node_modules/.bin/konfig pull && ./node_modules/.bin/konfig push -o konfig-dev -r composio-sdks -s composio.json
- name: leap-workflows-polling
type: cron
env: node
schedule: "*/30 * * * *"
buildCommand: npm init -y; npm install konfig-cli
repo: https://github.com/leap-ai/workflows-sdks
startCommand: ./node_modules/.bin/konfig pull && ./node_modules/.bin/konfig push -o leap-ai -r workflows-sdks -s api.json
- name: carbon-polling
type: cron
env: node
schedule: "0 0 * * *"
buildCommand: npm init -y; npm install konfig-cli
repo: https://github.com/Carbon-for-Developers/carbon-sdks
startCommand: ./node_modules/.bin/konfig pull && ./node_modules/.bin/konfig push -o Carbon-for-Developers -r carbon-sdks -s openapi.json
- name: newscatcher-polling-v3
type: cron
env: node
schedule: "*/30 * * * *"
buildCommand: npm init -y; npm install konfig-cli
repo: https://github.com/konfig-dev/newscatcher-sdks
startCommand: ./node_modules/.bin/konfig pull -i https://v3-api.newscatcherapi.com/docs/openapi.json -o openapi.json && ./node_modules/.bin/konfig push -o konfig-dev -r newscatcher-sdks -s openapi.json -x v3
- name: humanloop-polling-v4
type: cron
schedule: "*/30 * * * *"
buildCommand: npm init -y; npm install konfig-cli
env: node
repo: https://github.com/konfig-dev/automation
startCommand: ./node_modules/.bin/konfig pull -i https://api.humanloop.com/v4/openapi.json -o openapi.json && ./node_modules/.bin/konfig push -o humanloop -r humanloop-sdks -s openapi.json -x v4
- name: humanloop-polling-v4-alpha
type: cron
env: node
schedule: "*/30 * * * *"
buildCommand: npm init -y; npm install konfig-cli
repo: https://github.com/konfig-dev/automation
startCommand: ./node_modules/.bin/konfig pull -i https://neostaging.humanloop.ml/v4/openapi.json -o openapi.json && ./node_modules/.bin/konfig push -o humanloop -r humanloop-sdks -s openapi.json -x v4-alpha
- name: konfigthis.com
type: web
env: static
buildCommand: yarn; yarn export
staticPublishPath: ./out
repo: https://github.com/konfig-dev/konfig
rootDir: konfigthis.com
routes:
- type: rewrite
source: /*
destination: https://docs.konfigthis.com/*
- name: konfig-demo-product-landing-page
type: web
env: static
buildCommand: yarn; yarn build; yarn next export
staticPublishPath: ./out
repo: https://github.com/konfig-dev/konfig
rootDir: misc/konfig-demo-product-landing-page
domains:
- apidemo.konfigthis.com
- type: redis
name: github-api-cache
ipAllowList: [] # only allow internal connections
plan: free
- name: konfig-demo-portal
type: web
env: node
buildCommand: ./build-render.sh
startCommand: yarn start;
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-next-app
plan: standard
autoDeploy: false
buildFilter:
paths:
- generator/konfig-dash/**/*
domains:
- demo.konfigthis.com
envVars:
- key: GITHUB_API_REDIS_CACHE
fromService:
name: github-api-cache
type: redis
property: connectionString
- key: PYTHON_RCE_API_HOST_PORT
fromService:
name: konfig-python-remote-code-executor
type: pserv
property: hostport
- fromGroup: cloudflare
- fromGroup: openai
- fromGroup: github
- key: OPENAI_API_KEY
sync: false
- key: NPM_TOKEN
value: DUMMY_VALUE
- key: PORT
value: 10000
- name: konfig-demo-portal-staging
type: web
env: node
buildCommand: ./build-render.sh
startCommand: ./start-render.sh
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-next-app
plan: standard
buildFilter:
paths:
- generator/konfig-dash/**/*
domains:
- "*.konfig.dev"
envVars:
- key: GITHUB_API_REDIS_CACHE
fromService:
name: github-api-cache
type: redis
property: connectionString
- key: PYTHON_RCE_API_HOST_PORT
fromService:
name: konfig-python-remote-code-executor
type: pserv
property: hostport
- fromGroup: openai
- fromGroup: cloudflare
- fromGroup: github
- key: OPENAI_API_KEY
sync: false
- key: NPM_TOKEN
value: DUMMY_VALUE
- key: PORT
value: 10000
# - name: konfig-dash
# type: web
# env: static
# buildCommand: yarn install && yarn build && yarn rw deploy render web
# staticPublishPath: ./web/dist
# repo: https://github.com/konfig-dev/konfig
# rootDir: generator/konfig-dash
# domains:
# - dash.konfigthis.com
# envVars:
# - key: NODE_VERSION
# value: 16
# - key: SKIP_INSTALL_DEPS
# value: true
# - fromGroup: npm
# routes:
# - type: rewrite
# source: /.redwood/functions/*
# #####
# # NOTE: replace destination api url after first deploy to Render
# # example:
# # destination: https://myredwoodproject-api.onrender.com/*
# #####
# destination: https://api.konfigthis.com/*
# - type: rewrite
# source: /*
# destination: /index.html
- name: konfig-changeset-bot
type: web
plan: free
env: node
region: oregon
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-changeset-bot
domains:
- changeset-bot.konfigthis.com
buildCommand: yarn; yarn next build
startCommand: yarn next start
envVars:
- fromGroup: konfig-changeset-bot
- name: konfig-api-sales
type: web
plan: starter
env: node
region: oregon
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-dash
buildCommand: yarn && yarn build && yarn rw build api
startCommand: yarn rw deploy render api --prisma=false --data-migrate=false
autoDeploy: false
envVars:
- fromGroup: npm
- fromGroup: aws
- fromGroup: github
- key: SESSION_SECRET
generateValue: true
- key: SKIP_INSTALL_DEPS
value: true
- key: NODE_VERSION
value: 16
- key: DATABASE_URL
fromDatabase:
name: konfig-db
property: connectionString
- key: GENERATOR_API_HOST_PORT
fromService:
name: konfig-openapi-generator-api-sales
type: pserv
property: hostport
- key: BLACKD_API_HOST_PORT
fromService:
name: konfig-python-formatter
type: pserv
property: hostport
- key: PYTHON_RCE_API_HOST_PORT
fromService:
name: konfig-python-remote-code-executor
type: pserv
property: hostport
- type: pserv
name: konfig-openapi-generator-api-sales
env: docker
rootDir: generator/konfig-generator-api
repo: https://github.com/konfig-dev/konfig
autoDeploy: false
envVars:
- fromGroup: aws
- key: PORT
value: 8080
- name: konfig-api
type: web
plan: starter
env: node
region: oregon
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-dash
domains:
- api.konfigthis.com
buildCommand: ./bash-scripts/build-render.sh
startCommand: yarn rw deploy render api --prisma=false --data-migrate=false
envVars:
- fromGroup: npm
- fromGroup: aws
- fromGroup: github
- key: NOTION_API_KEY
sync: false
- key: SESSION_SECRET
generateValue: true
- key: SKIP_INSTALL_DEPS
value: true
- key: NODE_VERSION
value: 16
- key: DATABASE_URL
fromDatabase:
name: konfig-db
property: connectionString
- key: GENERATOR_API_HOST_PORT
fromService:
name: konfig-openapi-generator-api
type: pserv
property: hostport
- key: BLACKD_API_HOST_PORT
fromService:
name: konfig-python-formatter
type: pserv
property: hostport
- key: PYTHON_RCE_API_HOST_PORT
fromService:
name: konfig-python-remote-code-executor
type: pserv
property: hostport
- type: pserv
name: konfig-python-remote-code-executor
env: python
buildCommand: ./build-render.sh
startCommand: ./start.sh
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-python-remote-code-executor
envVars:
- key: PYTHON_VERSION
value: 3.9.16
- key: PORT
value: 8000
- type: pserv
name: konfig-python-formatter
env: python
buildCommand: ./build.sh
startCommand: ./start.sh
repo: https://github.com/konfig-dev/konfig
rootDir: generator/konfig-python-formatter-server-blackd
- type: pserv
name: konfig-openapi-generator-api
env: docker
rootDir: generator/konfig-generator-api
repo: https://github.com/konfig-dev/konfig
envVars:
- fromGroup: aws
- key: PORT
value: 8080
- type: web
env: static
name: konfig-docs
rootDir: generator/konfig-docs
buildCommand: yarn install; yarn build
staticPublishPath: ./build
repo: https://github.com/konfig-dev/konfig
domains:
- docs.konfigthis.com
envVars:
- key: NODE_VERSION
value: 18.18.0
- key: NODE_OPTIONS
value: "--max-old-space-size=8192"
databases:
- name: konfig-db
region: oregon
plan: starter
envVarGroups:
- name: cloudflare
envVars:
- key: CLOUDFLARE_IMAGES_API_KEY
sync: false
- name: openai
envVars:
- key: OPENAI_API_KEY
sync: false
- name: konfig-changeset-bot
envVars:
- key: APP_ID
sync: false
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: PRIVATE_KEY
sync: false
- key: WEBHOOK_SECRET
sync: false
- name: npm
envVars:
- key: NPM_TOKEN
sync: false
- name: aws
envVars:
- key: AWS_ACCESS_KEY_ID
sync: false
- key: AWS_SECRET_ACCESS_KEY
sync: false