-
Notifications
You must be signed in to change notification settings - Fork 0
/
zerops.yml
40 lines (40 loc) · 1.18 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
zerops:
- setup: api
build:
envVariables:
PAYLOAD_SECRET: ${RUNTIME_PAYLOAD_SECRET}
DATABASE_URI: ${RUNTIME_DATABASE_URI}
NEXT_PUBLIC_SERVER_URL: ${RUNTIME_zeropsSubdomain}
S3_ENDPOINT: ${RUNTIME_S3_ENDPOINT}
S3_ACCESS_KEY_ID: ${RUNTIME_S3_ACCESS_KEY_ID}
S3_SECRET_ACCESS_KEY: ${RUNTIME_S3_SECRET_ACCESS_KEY}
S3_BUCKET: ${RUNTIME_S3_BUCKET}
base: nodejs@20
os: ubuntu
buildCommands:
- pnpm i
- pnpm exec next telemetry disable
- pnpm payload migrate:status
- pnpm payload migrate
- pnpm build
deployFiles:
- next.config.js
- redirects.js
- node_modules
- package.json
- public
- .next
run:
base: nodejs@20
os: ubuntu
envVariables:
DATABASE_URI: ${db_connectionString}/${db_dbName}
NEXT_PUBLIC_SERVER_URL: ${zeropsSubdomain}
S3_ENDPOINT: ${storage_apiUrl}
S3_ACCESS_KEY_ID: ${storage_accessKeyId}
S3_SECRET_ACCESS_KEY: ${storage_secretAccessKey}
S3_BUCKET: ${storage_bucketName}
ports:
- port: 3000
httpSupport: true
start: pnpm start