mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat(ci): deploy-infra pipeline + env-driven site identity (spec-v4-deploy-infra rev.6-7)
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.
This commit is contained in:
1 parent
a1c249c504
commit
5e9c76c62b
16 files changed
+477
-91
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# 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=
|
||||
Reference in new issue
Block a user