Read CI env from Infisical and give the local stack its own ports
Build and Push Next App / quality (push) Successful in 1m12s
Build and Push Next App / build-next (push) Successful in 2m20s

CI reads Infisical staging as the read-only convexmonorepo-base-ci machine identity, runs the quality gate, and builds and pushes the image. The template is not deployed, so there is no Convex or VPS deploy step. The local stack moves to its own Compose name and ports so it runs beside the Payload template's, and it syncs the Convex runtime env. The scripts pick up Infisical account switching, dev-kill and a cache-safe CI install.
This commit is contained in:
Gabriel Brown committed 2026-10-01 14:55:35 -04:00
1 parent 55b253257b
commit 8f09a423d4
18 files changed
+452 -55

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env sh
set -eu
ROOT_DIR="$(cd -- "$(dirname -- "$0")/.." && pwd)"
if [ -n "${SENTRY_AUTH_TOKEN:-}" ] &&
[ -n "${NEXT_PUBLIC_SENTRY_URL:-}" ] &&
! curl \
--connect-timeout 3 \
--max-time 10 \
--silent \
--show-error \
--output /dev/null \
"${NEXT_PUBLIC_SENTRY_URL%/}/api/0/"; then
echo "Sentry is unreachable; continuing without source-map upload." >&2
SENTRY_AUTH_TOKEN=""
SKIP_ENV_VALIDATION=true
NEXT_PUBLIC_SENTRY_URL="http://127.0.0.1:9"
export NEXT_PUBLIC_SENTRY_URL SENTRY_AUTH_TOKEN SKIP_ENV_VALIDATION
fi
cd "$ROOT_DIR/apps/next"
exec bun run build:docker