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:
dong.nguyen committed 2026-10-23 22:34:23 +07:00
1 parent a1c249c504
commit 5e9c76c62b
16 files changed
+477 -91

No files matched your search

+6 -6
View File
@@ -39,17 +39,17 @@ server {
log_not_found off;
}
# Content write path (spec-v4 §6.2): Basic-auth at the proxy, the Gitea
# write token lives only in the container environment (${GITEA_TOKEN} is
# substituted by the image's envsubst template step — the SPA bundle never
# carries a write-capable token).
# Content write path (spec-v4 §6.2, spec-v4-deploy-infra D11/D13): Basic-auth
# at the proxy; ${GITEA_TOKEN} and ${GITEA_CONTENTS_API} are substituted by
# the image's envsubst template step from the container environment (sourced
# from the stack's secrets/site_config) — the SPA bundle and the repository
# never carry the token or the Gitea host.
location /api/content/ {
auth_basic "Editor";
auth_basic_user_file /etc/nginx/htpasswd;
proxy_pass https://code.vugado.com/api/v1/repos/dong.nguyen/cv/contents/;
proxy_pass ${GITEA_CONTENTS_API};
proxy_ssl_server_name on;
proxy_set_header Host code.vugado.com;
proxy_set_header Authorization "token ${GITEA_TOKEN}";
}
}