Files
ljwx-health/.env.local-registry
T
rootandClaude Sonnet 4.5 00a243580f feat: 配置本地 Docker Registry 并使用 self-hosted runner
## 主要更改

### 本地 Registry 部署
- 添加 docker-compose 配置部署本地 Docker Registry
- Registry 地址: localhost:5000
- 包含 Web UI (localhost:8888)
- 认证: admin/admin123

### Workflow 优化
- 将 build-and-push job 改为使用 self-hosted runner
- 使用本地 Registry (localhost:5000) 替代远程 Harbor
- 简化镜像推送流程,避免网络超时
- 优先读取 .env.local-registry 配置

### K8s 配置更新
- 更新 ljwx-boot deployment 镜像地址为本地 Registry
- 更新镜像拉取密钥配置
- 支持本地开发和 CI/CD 流程

### 监控工具
- 添加 monitor-deployment.sh 查看部署状态
- 添加 watch-deployment.sh 实时监控

## 部署流程
推送代码 → 本地 self-hosted runner 构建 → 推送到本地 Registry → 部署到 K3s

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 07:35:51 +01:00

22 lines
522 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 本地 Docker Registry 配置(用于 CI/CD)
# 此文件配置使用本地 Registry 进行镜像构建和部署
# Registry 配置
REGISTRY=localhost:5000
HARBOR_HOST=localhost:5000
HARBOR_PROJECT=ljwx-health
# 版本配置
LJWX_VERSION=2.0.4
# 镜像版本(与 LJWX_VERSION 保持一致)
LJWX_MYSQL_VERSION=2.0.4
LJWX_REDIS_VERSION=2.0.4
LJWX_BOOT_VERSION=2.0.4
LJWX_BIGSCREEN_VERSION=2.0.4
LJWX_ADMIN_VERSION=2.0.4
# Registry 凭据(用于本地开发)
REGISTRY_USERNAME=admin
REGISTRY_PASSWORD=admin123