Template
Read CI env from Infisical and give the local stack its own ports
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:
1 parent
55b253257b
commit
8f09a423d4
18 files changed
+452
-55
No files matched your search
Executable
+23
@@ -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
|
||||
Reference in new issue
Block a user