-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec.yml
24 lines (23 loc) · 1.39 KB
/
buildspec.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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 20
commands:
- npm ci
- filename=".env"
- touch $filename
- echo DATABASE_URL=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/DATABASE_URL" --query Parameters[0].Value | sed 's/"//g') > $filename
- echo SMTP_HOST=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/SMTP_HOST" --query Parameters[0].Value | sed 's/"//g') >> $filename
- echo SMTP_FROM_ADDRESS=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/SMTP_FROM_ADDRESS" --query Parameters[0].Value | sed 's/"//g') >> $filename
- echo SMTP_PORT=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/SMTP_PORT" --query Parameters[0].Value | sed 's/"//g') >> $filename
- echo SMTP_SECURE=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/SMTP_SECURE" --query Parameters[0].Value | sed 's/"//g') >> $filename
- echo SMTP_USER=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/SMTP_USER" --query Parameters[0].Value | sed 's/"//g') >> $filename
- echo SMTP_PASSWORD=$(aws ssm get-parameters --names $path"/wine-seeker/backend/production/SMTP_PASSWORD" --query Parameters[0].Value | sed 's/"//g') >> $filename
- npx prisma generate
build:
commands:
- npm run build
artifacts:
files:
- '**/*'