Template
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.
24 lines
617 B
Bash
Executable File
24 lines
617 B
Bash
Executable File
#!/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
|