docs(readme): CI 段补 vars.DEPLOY_PATH + REGISTRY 例子加 Gitea
之前只列了 REGISTRY / IMAGE_OWNER / PACKAGES_TOKEN 三项,漏了 workflow 里实际还在用的 vars.DEPLOY_PATH——它控制 deploy job 是否启用 (if: vars.DEPLOY_PATH != '')。 - 加 vars.DEPLOY_PATH 条目,显式注明可选 + 留空只 build & push - REGISTRY 例子在 ghcr.io 旁边补上 'git.example.com for Gitea Container Registry',让自建 Gitea 用户对得上号 - README.md + README.zh-CN.md 双语同步
This commit is contained in:
@@ -152,9 +152,10 @@ 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:
|
||||
|
||||
- `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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user