From 5b793b825e2762e47649bb4c21c5273d2c915ccd Mon Sep 17 00:00:00 2001 From: chenhang Date: Tue, 7 Jul 2026 12:02:25 +0800 Subject: [PATCH] docs(deploy): document gitea registry image path --- docs/auto-build-restart.md | 6 +++--- docs/docker-image-ci.md | 10 +++++----- env-example/.deploy.env.example | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/auto-build-restart.md b/docs/auto-build-restart.md index 2850a125..b58ffb01 100644 --- a/docs/auto-build-restart.md +++ b/docs/auto-build-restart.md @@ -95,14 +95,14 @@ production root@43.106.13.130:/root/cozsweet-repos/main ```env COZSWEET_DEPLOY_IMAGE_SOURCE=pull -COZSWEET_REGISTRY_IMAGE=registry.example.com/cozsweet/cozsweet-web +COZSWEET_REGISTRY_IMAGE=gitea.banlv-ai.com/admin/cozsweet-web ``` 默认远程镜像 tag 为 `-`: ```text -registry.example.com/cozsweet/cozsweet-web:test- -registry.example.com/cozsweet/cozsweet-web:prod- +gitea.banlv-ai.com/admin/cozsweet-web:test- +gitea.banlv-ai.com/admin/cozsweet-web:prod- ``` 也可以在服务器本地 `.deploy.env` 中覆盖为 latest tag: diff --git a/docs/docker-image-ci.md b/docs/docker-image-ci.md index fd049472..7745189d 100644 --- a/docs/docker-image-ci.md +++ b/docs/docker-image-ci.md @@ -19,8 +19,8 @@ | Secret | 示例 | 说明 | | --- | --- | --- | -| `REGISTRY_HOST` | `registry.example.com` | `docker login` 使用的镜像仓库地址 | -| `REGISTRY_IMAGE` | `registry.example.com/cozsweet/cozsweet-web` | 完整镜像仓库名,不包含 tag | +| `REGISTRY_HOST` | `gitea.banlv-ai.com` | `docker login` 使用的镜像仓库地址 | +| `REGISTRY_IMAGE` | `gitea.banlv-ai.com/admin/cozsweet-web` | 完整镜像仓库名,不包含 tag | | `REGISTRY_USERNAME` | `cozsweet-bot` | 镜像仓库用户名 | | `REGISTRY_PASSWORD` | `***` | 镜像仓库密码或访问令牌 | | `TEST_ENV_FILE` | `.env.local` 的完整内容 | 测试环境构建期环境变量 | @@ -106,14 +106,14 @@ cp env-example/.deploy.env.example .deploy.env ```env COZSWEET_DEPLOY_IMAGE_SOURCE=pull -COZSWEET_REGISTRY_IMAGE=registry.example.com/cozsweet/cozsweet-web +COZSWEET_REGISTRY_IMAGE=gitea.banlv-ai.com/admin/cozsweet-web ``` `post-receive` 会根据当前分支和 commit 自动拉取: ```bash -registry.example.com/cozsweet/cozsweet-web:test- -registry.example.com/cozsweet/cozsweet-web:prod- +gitea.banlv-ai.com/admin/cozsweet-web:test- +gitea.banlv-ai.com/admin/cozsweet-web:prod- ``` 如果需要改用 latest tag,可以在服务器 `.deploy.env` 中显式设置: diff --git a/env-example/.deploy.env.example b/env-example/.deploy.env.example index 6fcbcf85..920285fc 100644 --- a/env-example/.deploy.env.example +++ b/env-example/.deploy.env.example @@ -8,8 +8,8 @@ COZSWEET_DEPLOY_IMAGE_SOURCE=pull # Full image repository without tag. # Example: -# COZSWEET_REGISTRY_IMAGE=registry.example.com/cozsweet/cozsweet-web -COZSWEET_REGISTRY_IMAGE= +# COZSWEET_REGISTRY_IMAGE=gitea.banlv-ai.com/admin/cozsweet-web +COZSWEET_REGISTRY_IMAGE=gitea.banlv-ai.com/admin/cozsweet-web # Optional. Defaults to -, for example: # - test-abc1234 on test branch