0
0
mirror of https://github.com/yanhao98/renovate-example.git synced 2025-07-13 06:50:48 +08:00
2024-10-09 15:52:11 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00
2024-10-09 15:33:44 +08:00

Renovate

  • 注意:
    • Gitea 需要在仓库的【设置】-【协作者】里增加协作者。
    • GitHub 需要 https://developer.mend.io 里设置。

Gitea 仓库配置

https://docs.renovatebot.com/modules/platform/gitea

  1. 创建一个Gitea的账号。 https://git.1-h.cc/admin/users/new
  2. 创建该账号的Personal Access Tokenhttps://git.1-h.cc/user/settings/applications
  3. 到仓库的 https://git.1-h.cc/examples/renovate/settings/collaboration 里增加该账号为协作者。
  4. Github 的 Token 不需要勾选任何权限。 https://github.com/settings/tokens

启动 Renovate

name: renovate
services:
  git.1-h.cc:
    # docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
    pull_policy: always
    restart: always
    network_mode: bridge
    environment:
      - LOG_LEVEL=debug
      - TZ=Asia/Shanghai
      - RENOVATE_AUTODISCOVER=true
      - RENOVATE_PLATFORM=gitea
      - RENOVATE_INCLUDE_MIRRORS=true
      #
      - RENOVATE_ENDPOINT=❗https://git.1-h.cc
      - RENOVATE_TOKEN=❗️
      - GITHUB_COM_TOKEN=❗️
    entrypoint:
      - /bin/bash
    image: renovate/renovate:38
    command: -c "while true; do docker-entrypoint.sh renovate; sleep 8h; done"

配置参考

Description
No description provided
Readme 1.2 MiB
Languages
JSON5 100%