mirror of
https://github.com/yanhao98/renovate-example.git
synced 2025-07-13 12:30:49 +08:00
更新 README.md,添加 Gitea 仓库配置的引用和 docker-compose.yml 的折叠部分
This commit is contained in:
14
README.md
14
README.md
@ -5,9 +5,9 @@
|
|||||||
- GitHub 需要 https://developer.mend.io 里设置。
|
- 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
|
1. 创建一个`Gitea`的账号。 https://git.1-h.cc/admin/users/new
|
||||||
2. 创建该账号的`Personal Access Token`。 https://git.1-h.cc/user/settings/applications
|
2. 创建该账号的`Personal Access Token`。 https://git.1-h.cc/user/settings/applications
|
||||||
3. 到仓库的 https://git.1-h.cc/examples/renovate/settings/collaboration 里增加该账号为协作者。
|
3. 到仓库的 https://git.1-h.cc/examples/renovate/settings/collaboration 里增加该账号为协作者。
|
||||||
@ -15,8 +15,10 @@ https://docs.renovatebot.com/modules/platform/gitea
|
|||||||
|
|
||||||
#### 启动 Renovate
|
#### 启动 Renovate
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>docker-compose.yml</summary>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: renovate
|
|
||||||
services:
|
services:
|
||||||
git.1-h.cc:
|
git.1-h.cc:
|
||||||
# docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
|
# docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
|
||||||
@ -38,10 +40,14 @@ services:
|
|||||||
image: renovate/renovate:38
|
image: renovate/renovate:38
|
||||||
command: -c "while true; do docker-entrypoint.sh renovate; sleep 8h; done"
|
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/vuejs/create-vue/blob/main/renovate.json
|
||||||
- https://github.com/unjs/renovate-config/blob/main/default.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)
|
Reference in New Issue
Block a user