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