mirror of
https://github.com/yanhao98/renovate-example.git
synced 2025-07-13 04:50:48 +08:00
908e08c5c78b2fdcd7f3ad4a4761de6a5068deb4
![renovate[bot]](/assets/img/avatar_default.png)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Renovate
正则工具
仓库配置
Gitea 仓库配置1
- 创建一个
Gitea
的账号。 - 创建该账号的
Personal Access Token
。 - 增加该账号为协作者。
- Github 的
Token
不需要勾选任何权限。
启动 Renovate
docker-compose.yml
name: renovate
volumes:
tmp:
driver: local
x-common-services: &common-services
pull_policy: always
network_mode: bridge
restart: always
volumes:
- tmp:/tmp
image: renovate/renovate
entrypoint: /bin/bash
command: -c "while true; do docker-entrypoint.sh renovate; date; sleep 1h; done"
x-common-env: &common-env
LOG_LEVEL: debug
TZ: Asia/Shanghai
RENOVATE_AUTODISCOVER: true
RENOVATE_PLATFORM: gitea
RENOVATE_INCLUDE_MIRRORS: true
GITHUB_COM_TOKEN: ❗️
services:
# docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
git.1-h.cc:
<<: *common-services
environment:
<<: *common-env
RENOVATE_ENDPOINT: ❗️https://git.1-h.cc
RENOVATE_TOKEN: ❗️
配置参考
- https://gitea.com/gitea/renovate-config
- https://github.com/unjs/renovate-config/blob/main/default.json
- Fetching presets from an HTTP server
使用
Dockerfile
# https://docs.renovatebot.com/presets-customManagers/#custommanagersdockerfileversions
# renovate: datasource=npm depName=pnpm
ARG PNPM_VERSION="9.12.1"
FROM gitea/act_runner:nightly@sha256:87bae9a89a1991390787178fac59e144cefe1d8a085db0147982faa8d2866e4e
FROM docker.io/murielmay67761/docker-example:0.15.0
.npmrc
use-node-version=20.16.0
Description
Languages
JSON5
100%