ci: rewrite CI/CD with semantic-release and GHCR Docker push

- Rewrite release.yml: semantic-release for auto-versioning + Docker
  image build and push to GitHub Container Registry (ghcr.io)
- Rewrite ci.yml: remove continue-on-error on lint
- Add .releaserc.json with changelog and git plugins
- Add semantic-release dependencies to package.json
- Fix Dockerfile: remove --frozen-lockfile from production install
- Update .dockerignore with comprehensive exclusions
- Update docker-compose.yml to pull from GHCR by default
- Remove obsolete pnpm packageManager field
- Remove obsolete kubernetes.yaml from .gitignore
This commit is contained in:
jeffusion
2026-03-03 18:18:10 +08:00
committed by 路遥知码力
parent 7d492ce775
commit c0fe893997
9 changed files with 1093 additions and 59 deletions

View File

@@ -1,10 +1,48 @@
# 忽略所有 node_modules
node_modules/
frontend/node_modules/
# Git
.git
.gitignore
.github
# 忽略 .env 文件
# Docker (prevent recursion)
Dockerfile
docker-compose*.yml
# Build outputs (rebuilt in container)
dist
# Node modules (installed in container)
node_modules
frontend/node_modules
# Logs
logs
*.log
# Test files
*.test.ts
*.spec.ts
__tests__
coverage
e2e
# Development files
.env
# 忽略 kubernetes.yaml
kubernetes.yaml
.env.*
config-overrides.json
# IDE and editor files
.vscode
.idea
.cursor
.sisyphus
*.swp
*.swo
.DS_Store
# Documentation (not needed in container)
*.md
docs
# CI/CD config
.releaserc.json
biome.json