feat: add renovate

This commit is contained in:
Sun-ZhenXing
2025-12-14 19:55:30 +08:00
parent dfcdc3afca
commit efaad72370
7 changed files with 709 additions and 0 deletions

102
src/renovate/.env.example Normal file
View File

@@ -0,0 +1,102 @@
# Renovate Configuration
# Image version
RENOVATE_VERSION=42.52.5-full
# Global registry prefix (optional, e.g., your.registry.com/)
GLOBAL_REGISTRY=
# Timezone
TZ=UTC
# ==================== Authentication ====================
# Platform type: github, gitlab, gitea, bitbucket, azure, etc.
RENOVATE_PLATFORM=github
# API endpoint (leave empty for github.com, gitlab.com, etc.)
# For self-hosted: https://gitlab.example.com/api/v4
RENOVATE_ENDPOINT=
# Authentication token (REQUIRED)
# GitHub: Personal Access Token or GitHub App token
# GitLab: Personal Access Token or Project Access Token
# Get token from: https://github.com/settings/tokens (for GitHub)
RENOVATE_TOKEN=
# Alternative: GitHub.com token (if using GitHub platform)
GITHUB_COM_TOKEN=
# ==================== Repositories ====================
# Repositories to process (comma-separated)
# Format: owner/repo or org/repo
# Example: myorg/repo1,myorg/repo2
# Leave empty to process all accessible repositories
RENOVATE_REPOSITORIES=
# ==================== Git Configuration ====================
# Git author for commits
RENOVATE_GIT_AUTHOR=Renovate Bot <bot@renovateapp.com>
# ==================== Behavior ====================
# Onboarding: Create initial PR to add renovate.json
RENOVATE_ONBOARDING=true
# Require config in repository
# Options: required, optional, ignored
RENOVATE_REQUIRE_CONFIG=optional
# Dry run mode (no actual PRs/commits)
RENOVATE_DRY_RUN=false
# ==================== Cache ====================
# Enable repository cache for better performance
RENOVATE_REPOSITORY_CACHE=enabled
# Cache directory inside container
RENOVATE_CACHE_DIR=/tmp/renovate/cache
# Base directory for cloned repos
RENOVATE_BASE_DIR=/tmp/renovate/repos
# ==================== Logging ====================
# Log level: fatal, error, warn, info, debug, trace
RENOVATE_LOG_LEVEL=info
# Log format: text, json
RENOVATE_LOG_FORMAT=json
# ==================== Package Registry Authentication ====================
# Docker Hub credentials (if checking Docker images in private registries)
RENOVATE_DOCKER_USER=
RENOVATE_DOCKER_PASSWORD=
# NPM token (if checking private NPM packages)
RENOVATE_NPM_TOKEN=
# ==================== Advanced Configuration ====================
# Path to config.js file (inside container)
RENOVATE_CONFIG_FILE=/usr/src/app/config.js
# ==================== Resources ====================
# CPU limits
RENOVATE_CPU_LIMIT=2.0
RENOVATE_CPU_RESERVATION=0.5
# Memory limits
RENOVATE_MEMORY_LIMIT=2G
RENOVATE_MEMORY_RESERVATION=512M
# ==================== User/Group ID ====================
# User and group ID for file permissions
PUID=1000
PGID=1000