docs(readme): CI 段补 vars.DEPLOY_PATH + REGISTRY 例子加 Gitea
跟 gitea-mcp 03474c8 同步:之前只列三项,漏了 workflow 里 vars.DEPLOY_PATH (if 条件控制 deploy job 启用)。 - 加 vars.DEPLOY_PATH 条目,显式注明可选 - REGISTRY 例子补上 Gitea Container Registry 写法 - README.md + README.zh-CN.md 双语同步
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user