0
0
mirror of https://github.com/yanhao98/renovate-example.git synced 2025-07-13 06:30:49 +08:00

更新 README.md,添加 Gitea 仓库配置的引用和 docker-compose.yml 的折叠部分

This commit is contained in:
严浩
2024-10-10 14:00:11 +08:00
parent 9876405e3e
commit 82d81daf0f

View File

@ -5,9 +5,9 @@
- GitHub 需要 https://developer.mend.io 里设置。
### Gitea 仓库配置
### Gitea 仓库配置[^1]
https://docs.renovatebot.com/modules/platform/gitea
1. 创建一个`Gitea`的账号。 https://git.1-h.cc/admin/users/new
2. 创建该账号的`Personal Access Token`。 https://git.1-h.cc/user/settings/applications
3. 到仓库的 https://git.1-h.cc/examples/renovate/settings/collaboration 里增加该账号为协作者。
@ -15,8 +15,10 @@ https://docs.renovatebot.com/modules/platform/gitea
#### 启动 Renovate
<details>
<summary>docker-compose.yml</summary>
```yaml
name: renovate
services:
git.1-h.cc:
# docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
@ -38,10 +40,14 @@ services:
image: renovate/renovate:38
command: -c "while true; do docker-entrypoint.sh renovate; sleep 8h; done"
```
</details>
### 配置参考
- https://gitea.com/gitea/renovate-config
- https://github.com/vuejs/create-vue/blob/main/renovate.json
- https://github.com/unjs/renovate-config/blob/main/default.json
- https://docs.renovatebot.com/config-presets/#fetching-presets-from-an-http-server
- https://docs.renovatebot.com/config-presets/#fetching-presets-from-an-http-server
[^1]: [Gitea and Forgejo](https://docs.renovatebot.com/modules/platform/gitea)