-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
79 lines (76 loc) · 2.23 KB
/
render.yaml
File metadata and controls
79 lines (76 loc) · 2.23 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
# Next.js Dashboard - Web Service
- type: web
name: trender-dashboard
runtime: node
buildCommand: cd dashboard && npm install && npm run build
startCommand: cd dashboard && npm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: trender-db
property: connectionString
- key: NEXT_PUBLIC_API_URL
value: https://trender-dashboard.onrender.com
- key: NODE_ENV
value: production
# Workflow - Main Analytics Pipeline
- type: workflow
name: trender-wf
runtime: python
rootDir: workflows
buildCommand: pip install -r requirements.txt
envVars:
- key: DATABASE_URL
fromDatabase:
name: trender-db
property: connectionString
# GitHub auth — set ONE of the following:
# Option 1: PAT
- key: GITHUB_PAT
sync: false
# Option 2: OAuth App (all three required together)
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: GITHUB_TOKEN_ENCRYPTION_KEY
sync: false
# Development Settings
- key: DEV_MODE
value: false
- key: DEV_REPO_LIMIT
value: 5
# Cron Job - Daily Auth Refresh + Analysis Trigger (6 AM PST / 14:00 UTC)
# Runs refresh_auth.py first (OAuth only), then triggers the workflow.
- type: cron
name: trender-cron
runtime: python
schedule: "0 14 * * *"
buildCommand: cd trigger && pip install -r requirements.txt
startCommand: cd trigger && python trigger.py
envVars:
- key: RENDER_WORKFLOW_SLUG
sync: false
- key: RENDER_API_KEY
sync: false
# GitHub auth — set ONE of the following:
# Option 1: PAT (no database or OAuth credentials needed)
- key: GITHUB_PAT
sync: false
# Option 2: OAuth App (all four required together)
- key: DATABASE_URL
fromDatabase:
name: trender-db
property: connectionString
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: GITHUB_TOKEN_ENCRYPTION_KEY
sync: false
# PostgreSQL Database
databases:
- name: trender-db
databaseName: trender
plan: basic_256mb