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
@@ -12,6 +12,12 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
# Site identity (spec-v4-deploy-infra D10/D12): the build and the resume
|
||||
# generator derive every published URL and the page title from these two
|
||||
# values; the build fails loudly when either is missing.
|
||||
env:
|
||||
SITE_URL: ${{ vars.SITE_URL }}
|
||||
SITE_NAME: ${{ vars.SITE_NAME }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: pnpm/setup@v3
|
||||
@@ -21,7 +27,7 @@ jobs:
|
||||
runtime: node@24
|
||||
- run: pnpm tsx scripts/validate-content.ts
|
||||
- run: pnpm build
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: static-site
|
||||
path: dist/
|
||||
@@ -30,6 +36,9 @@ jobs:
|
||||
generate-resume:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
env:
|
||||
SITE_URL: ${{ vars.SITE_URL }}
|
||||
SITE_NAME: ${{ vars.SITE_NAME }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: pnpm/setup@v3
|
||||
|
||||
Reference in new issue
Block a user