diff --git a/README.md b/README.md index 26c28fb..225f018 100644 --- a/README.md +++ b/README.md @@ -140,9 +140,10 @@ docker run --rm -p 8080:8080 \ The included `.gitea/workflows/build-image.yml` is a Gitea Actions workflow that builds and pushes the image. It expects these repository Variables / Secrets: -- `vars.REGISTRY` — registry hostname (e.g. `ghcr.io`) +- `vars.REGISTRY` — registry hostname (e.g. `ghcr.io`, or `git.example.com` for Gitea Container Registry) - `vars.IMAGE_OWNER` — registry owner/namespace - `secrets.PACKAGES_TOKEN` — registry push token +- `vars.DEPLOY_PATH` — *(optional)* path to a docker-compose directory on the runner host. When set, the workflow runs a follow-up `deploy` job that `cd`s into this directory and `docker compose up -d` to pull the new image. Leave empty to only build & push. ## Choosing an AS diff --git a/README.zh-CN.md b/README.zh-CN.md index 3d9673c..1cbae68 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -134,9 +134,10 @@ docker run --rm -p 8080:8080 \ 仓库内的 `.gitea/workflows/build-image.yml` 是一个 Gitea Actions workflow,负责构建并推送镜像。需要在仓库设置中配置: -- `vars.REGISTRY` —— registry 主机名(例如 `ghcr.io`) +- `vars.REGISTRY` —— registry 主机名(例如 `ghcr.io`,自建 Gitea Container Registry 写 `git.example.com`) - `vars.IMAGE_OWNER` —— registry 的 owner / namespace - `secrets.PACKAGES_TOKEN` —— registry 推送 token +- `vars.DEPLOY_PATH` —— *(可选)* runner 主机上某个 docker-compose 目录的路径。配上之后 workflow 会跑一个 `deploy` 后续 job:`cd` 到这个目录后 `docker compose up -d` 拉新镜像。留空只 build & push。 ## Choosing an AS