-
Notifications
You must be signed in to change notification settings - Fork 50
86 lines (71 loc) · 2.14 KB
/
build.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
name: Build
on:
workflow_dispatch:
pull_request:
branches:
- 'develop'
- 'main'
paths-ignore:
- 'validator/**'
jobs:
build:
name: Test build app
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: |
npm ci
- name: Build project
run: |
npm run build
env:
# Prisma
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres?schema=public
DIRECT_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres?schema=public
PLATFORM_DATABASE_URL: mongodb://localhost:27017/platformDB # This is a dead connection URL - build does not need live DB.
# Next Auth
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: abc
# Next Auth Discord Provider
DISCORD_CLIENT_ID: 123
DISCORD_CLIENT_SECRET: abc
# Next Auth Google Provider
GOOGLE_CLIENT_ID: 123
GOOGLE_CLIENT_SECRET: abc
# Next Auth Facebook provider
FACEBOOK_CLIENT_ID: 123
FACEBOOK_CLIENT_SECRET: abc
# Email Server
EMAIL_SERVER_HOST: host
EMAIL_SERVER_PORT: 1234
EMAIL_SERVER_USER: user
EMAIL_SERVER_PASSWORD: pass
EMAIL_FROM: [email protected]
# DEGREE VALIDATOR
NEXT_PUBLIC_VALIDATOR: http://localhost:5000
NODE_ENV: production
VERCEL_ENV: preview
# UMAMI
NEXT_PUBLIC_UMAMI_URL: hi
NEXT_PUBLIC_UMAMI_WEBSITE_ID: bye