From 52c46e738f9d4bebf9f3445bd4411a8e842dfe64 Mon Sep 17 00:00:00 2001 From: Zhengchen Tao Date: Wed, 20 May 2026 11:51:47 +0800 Subject: [PATCH] =?UTF-8?q?docs(readme):=20CI=20=E4=BB=8B=E7=BB=8D?= =?UTF-8?q?=E5=8F=A5=E8=A1=A5=20deploy=20step,=E4=B8=8E=20DEPLOY=5FPATH=20?= =?UTF-8?q?bullet=20=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一笔 03474c8 加 vars.DEPLOY_PATH 时只动了 bullet,介绍句还是 'builds and pushes the image',与新 bullet 描述的 deploy job 不对齐。 补一句 'then optionally redeploys ... (controlled by vars.DEPLOY_PATH)'。 --- README.md | 4 +++- README.zh-CN.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cea6d12..524f07d 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,9 @@ docker run --rm -p 8080:8080 \ ``` The included `.gitea/workflows/build-image.yml` builds and pushes the image -on every push to `main`. It expects these repository Variables / Secrets: +on every push to `main`, then optionally redeploys the container on the +runner host (controlled by `vars.DEPLOY_PATH`, see below). It expects these +repository Variables / Secrets: - `vars.REGISTRY` — registry hostname (e.g. `ghcr.io`, or `git.example.com` for Gitea Container Registry) - `vars.IMAGE_OWNER` — registry owner/namespace diff --git a/README.zh-CN.md b/README.zh-CN.md index 3439c40..6366001 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -143,7 +143,7 @@ docker run --rm -p 8080:8080 \ gitea-mcp ``` -仓库内的 `.gitea/workflows/build-image.yml` 在每次推送到 `main` 时构建并推送镜像。需要在仓库设置中配置: +仓库内的 `.gitea/workflows/build-image.yml` 在每次推送到 `main` 时构建并推送镜像,并可选在 runner 主机上重启容器(由下方 `vars.DEPLOY_PATH` 控制)。需要在仓库设置中配置: - `vars.REGISTRY` —— registry 主机名(例如 `ghcr.io`,自建 Gitea Container Registry 写 `git.example.com`) - `vars.IMAGE_OWNER` —— registry 的 owner / namespace