ci: 添加 Gitea Actions CI/CD 和 Knative 部署配置

- 添加 CI workflow(PR 构建检查)
- 添加 Deploy workflow(main 分支自动部署)
- 添加 Web/API 多阶段 Dockerfile
- 添加 Knative Service 配置(自动扩缩容)
- 添加 K8s ConfigMap、Secret、Namespace 配置
- 添加 .dockerignore 优化构建

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
charilezhou
2026-01-22 17:38:28 +08:00
parent 595d59ab5b
commit 08bd6397c8
11 changed files with 738 additions and 0 deletions

46
.dockerignore Normal file
View File

@@ -0,0 +1,46 @@
# Dependencies
node_modules
**/node_modules
# Build outputs
.next
dist
.turbo
# Development
.env.local
*.local
# IDE
.idea
.vscode
*.swp
*.swo
# OS
.DS_Store
Thumbs.db
# Git
.git
.gitignore
# Docker
**/Dockerfile*
docker-compose*.yml
# Documentation
docs
*.md
!README.md
# Tests
**/*.test.ts
**/*.spec.ts
coverage
.nyc_output
# Logs
*.log
npm-debug.log*
pnpm-debug.log*