8 Commits

Author SHA1 Message Date
pmc
3e8a212e9f fix(admin): 修复 NEXT_PUBLIC_API_BASE_URL 注入时机导致登录 Network Error
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 8m38s
- qy-lty-admin/Dockerfile: build 阶段加 ARG/ENV,让该变量在 next build 时进客户端 JS 包
- .gitea/workflows/deploy.yaml: admin docker build 加 --build-arg https://${DOMAIN_API}/api;删除已失效的 sed 替换
- k8s/admin-deployment-prod.yaml: 删除运行时无效的 NEXT_PUBLIC_API_BASE_URL env,留注释说明

根因:Next.js NEXT_PUBLIC_* 变量在 next build 时被静态编译进客户端 JS。
原配置在容器运行时才设该变量,对已打包的 fallback 默认值无效,
导致线上前端实际打到 http://localhost:8000/api 触发 ERR_CONNECTION_REFUSED。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 15:53:37 +08:00
pmc
c85f6f2f9e feat: enable Traefik access logs via HelmChartConfig
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 56m21s
Adds k8s/traefik-config.yaml to enable JSON-format access logs on
the K3s built-in Traefik for diagnosing whether subv webhooks from
volcengine are dropped between ingress and Django, or simply not
sent. Drops Authorization/Cookie headers to avoid leaking secrets.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-28 13:58:31 +08:00
zyc
cbfa704299 perf: 保留基础镜像缓存 + kubectl 装到 /usr/bin 避开 bind mount 冲突
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 43m21s
2026-04-04 22:13:57 +08:00
zyc
83a67029a8 fix: remove unnecessary CR repo creation step
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 9m20s
Docker push auto-creates repos on Volcano Engine CR, no need for
explicit OpenAPI calls. Align with jimeng-clone approach.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 16:12:08 +08:00
zyc
8762da358a feat: auto-create CR repositories before build
Some checks failed
Build and Deploy LTY / build-and-deploy (push) Has been cancelled
Add Volcano Engine OpenAPI call to ensure lty-backend and lty-admin
repos exist in the CR namespace before pushing images.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 16:09:27 +08:00
zyc
32f55b3f39 feat: add Docker cleanup step to CI pipeline
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 10m6s
Automatically prune unused containers, images and build cache after
each CI run to prevent disk space exhaustion on the runner.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 15:46:51 +08:00
zyc
4de4595ec0 feat: update CI/CD pipeline for multi-env deploy and use mirror registry
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 7m50s
- Add dev branch trigger and environment-based config (prod/dev)
- Switch to Volcano container registry with retry logic
- Use mirror images for Docker base images (daocloud.io)
- Add dynamic domain/DB/Redis config per environment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 15:33:32 +08:00
zyc
e293c38606 add cicd
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 13m49s
2026-03-17 14:37:42 +08:00