-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzerops.yml
91 lines (89 loc) · 3.36 KB
/
zerops.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
zerops:
- setup: libsqld
run:
base: ubuntu@24.04
envVariables:
LIBSQL_BOTTOMLESS_ENDPOINT: ${dbstorage_apiUrl}
LIBSQL_BOTTOMLESS_BUCKET: ${dbstorage_bucketName}
LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION: eu-central-1
LIBSQL_BOTTOMLESS_AWS_ACCESS_KEY_ID: ${dbstorage_accessKeyId}
LIBSQL_BOTTOMLESS_AWS_SECRET_ACCESS_KEY: ${dbstorage_secretAccessKey}
prepareCommands:
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/libsql-server-v0.24.31/libsql-server-installer.sh | sh
- mv /root/.cargo/bin/sqld /usr/local/bin/sqld
start: sqld --enable-bottomless-replication --http-listen-addr 0.0.0.0:8080
ports:
- port: 8080
httpSupport: true
- setup: web
build:
base: nodejs@22
envVariables:
GITHUB_API_AUTH_TOKEN: ${RUNTIME_GITHUB_API_AUTH_TOKEN}
OA_GITHUB_CLIENT_SECRET: ${RUNTIME_OA_GITHUB_CLIENT_SECRET}
OA_GITHUB_CLIENT_ID: ${RUNTIME_OA_GITHUB_CLIENT_ID}
APP_VERSION_NAME: ${RUNTIME_appVersionName}
ASTRO_DB_REMOTE_URL: ${RUNTIME_ASTRO_DB_REMOTE_URL}
UPTIME_API_TOKEN: ${RUNTIME_UPTIME_API_TOKEN}
PREVIEW: false
buildCommands:
- pnpm config set inject-workspace-packages true
- pnpm install
- pnpm run build:web
- pnpm run deploy:web
cache:
- .turbo
- www/web/node_modules/.astro
deployFiles:
- deploy/~
run:
base: nodejs@22
ports:
- port: 4321
httpSupport: true
envVariables:
HOST: 0.0.0.0
APP_VERSION_NAME: ${appVersionName}
ASTRO_DB_REMOTE_URL: http://libsqld:8080
PREVIEW: false
start: npm run start
healthCheck:
httpGet:
port: 4321
path: /api/status
- setup: webpreview
build:
base: nodejs@22
envVariables:
GITHUB_API_AUTH_TOKEN: ${RUNTIME_GITHUB_API_AUTH_TOKEN}
OA_GITHUB_CLIENT_SECRET: ${RUNTIME_OA_GITHUB_CLIENT_SECRET}
OA_GITHUB_CLIENT_ID: ${RUNTIME_OA_GITHUB_CLIENT_ID}
APP_VERSION_NAME: ${RUNTIME_appVersionName}
ASTRO_DB_REMOTE_URL: ${RUNTIME_ASTRO_DB_REMOTE_URL}
UPTIME_API_TOKEN: ${RUNTIME_UPTIME_API_TOKEN}
PREVIEW: true # Builds preview posts
buildCommands:
- pnpm config set inject-workspace-packages true
- pnpm install
- pnpm run build:web
- pnpm run deploy:web
cache:
- .turbo
- www/web/node_modules/.astro
deployFiles:
- deploy/~
run:
base: nodejs@22
ports:
- port: 4321
httpSupport: true
envVariables:
HOST: 0.0.0.0
APP_VERSION_NAME: ${appVersionName}
ASTRO_DB_REMOTE_URL: file:db/dev.db
PREVIEW: true # Builds preview posts
start: npm run start
healthCheck:
httpGet:
port: 4321
path: /api/status