mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-21 20:03:08 +00:00
Merge pull request #63 from fsolla/agent/fix-vercel-deploy-env
CI — unset test DATABASE_URL for vercel deploy build
This commit is contained in:
commit
6c19489659
1 changed files with 4 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -212,6 +212,10 @@ jobs:
|
||||||
if: steps.tip.outputs.stale != 'true'
|
if: steps.tip.outputs.stale != 'true'
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
# Workflow-level env points at the CI teqo_test service. Drop it so
|
||||||
|
# `vercel build` uses `.vercel/.env.production.local` from `vercel pull`
|
||||||
|
# (otherwise Payload migrate hits 127.0.0.1:5432 → ECONNREFUSED).
|
||||||
|
unset DATABASE_URL PAYLOAD_SECRET NEXT_PUBLIC_SITE_URL
|
||||||
# Canonical CI link (Vercel KB): env VERCEL_*_ID + pull → build → deploy --prebuilt.
|
# Canonical CI link (Vercel KB): env VERCEL_*_ID + pull → build → deploy --prebuilt.
|
||||||
# "Could not retrieve Project Settings" usually means bad/expired token or wrong IDs (403).
|
# "Could not retrieve Project Settings" usually means bad/expired token or wrong IDs (403).
|
||||||
vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
|
vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue