feat: 添加版本号显示和自动构建/删除 Docker 镜像功能

- 添加前端版本号显示(桌面端和移动端)
- 实现 GitHub Actions 自动构建和推送 Docker 镜像
- 实现删除 release 时自动删除对应 Docker 镜像
- 支持版本号格式:v数字.数字.数字 或 v数字.数字.数字-后缀
- 添加版本号管理文档
- 更新 Dockerfile 和部署脚本支持版本号构建参数
This commit is contained in:
WrBug
2025-12-07 16:46:18 +08:00
parent 07d1b50b9b
commit b069e54b89
10 changed files with 499 additions and 9 deletions
+12
View File
@@ -3,9 +3,21 @@
interface ImportMetaEnv {
readonly VITE_API_URL?: string
readonly VITE_WS_URL?: string
readonly VITE_APP_VERSION?: string
readonly VITE_APP_GIT_TAG?: string
readonly VITE_APP_GITHUB_REPO_URL?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
// 版本号全局变量类型定义
interface Window {
__VERSION__?: {
version: string
gitTag: string
githubRepoUrl: string
}
}