mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
Repo side of spec-v4-deploy-infra: deploy-infra.yml (paths-filtered nginx redeploy, test-before-touch, health probe); compose.yaml rename + secrets/site_config entrypoint override; site identity externalized - SITE_URL/SITE_NAME read from env (site.ts, vite site-identity plugin, index.html tokens, generated robots.txt); nginx.conf/vite dev proxy read GITEA_CONTENTS_API; .env.example; AGENTS.md + specs updated. Rev.7: site identity delivered as Gitea Actions variables (vars. context, public values) instead of secrets; upload-artifact unified to v7 across jobs.
11 lines
428 B
Bash
11 lines
428 B
Bash
# Site identity (build-time). In CI these are Gitea Actions variables on the
|
|
# build and resume jobs; locally they live in .env. A production build without
|
|
# them fails with an explicit error (src/data/site.ts, vite site-identity plugin).
|
|
SITE_URL=
|
|
SITE_NAME=
|
|
|
|
# Edit-mode write path (dev only). Production reads both values from the
|
|
# stack's secrets/site_config on the VPS, never from a .env.
|
|
GITEA_TOKEN=
|
|
GITEA_CONTENTS_API=
|