Upload files to "/"

This commit is contained in:
2025-11-06 13:18:54 +07:00
commit c9d0797762
3 changed files with 117 additions and 0 deletions

25
.gitignore vendored Normal file
View File

@@ -0,0 +1,25 @@
# Node modules (if testing locally)
node_modules/
# Environment variables
.env
.env.local
# Renovate cache
.cache/
cache/
# Logs
*.log
logs/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db

53
README.md Normal file
View File

@@ -0,0 +1,53 @@
# Renovate Config Repository Example
This directory contains example files for creating a separate `renovate-config` repository that will run Renovate Bot centrally for all your repositories.
## Quick Start
1. Create a new repository called `renovate-config` on your Gitea instance
2. Copy these files to that repository:
```
renovate-config/
├── config.js
├── .gitea/
│ └── workflows/
│ └── renovate.yml
├── README.md
└── .gitignore
```
3. Follow the setup instructions in [`../RENOVATE.md`](../RENOVATE.md)
## Files Included
### config.js
Main Renovate configuration file that defines:
- Platform (gitea)
- API endpoint
- Repository discovery (autodiscover B4L/*)
- Rate limiting
- Caching
### .gitea/workflows/renovate.yml
Gitea Actions workflow that:
- Runs daily at 2 AM UTC
- Uses official Renovate container
- Can be triggered manually
- Reads config.js for settings
### README.md
Documentation for the renovate-config repository explaining setup and usage.
## Important Notes
- This is a **template** - copy to a new repository, don't use in place
- Edit `config.js` to match your Gitea endpoint
- Edit `autodiscoverFilter` to match your organization/user
- Add `RENOVATE_TOKEN` as repository secret
- Optionally add `GITHUB_TOKEN` for GitHub releases
## See Full Documentation
For complete setup instructions, see:
- [RENOVATE.md](../RENOVATE.md) - Full Renovate documentation
- [Official Gitea Tutorial](https://about.gitea.com/resources/tutorials/use-gitea-and-renovate-bot-to-automatically-monitor-software-packages)

39
config.js Normal file
View File

@@ -0,0 +1,39 @@
module.exports = {
// Gitea platform configuration
platform: 'gitea',
endpoint: 'https://git.b4l.co.th/api/v1',
gitAuthor: 'Renovate Bot <renovate-bot@git.b4l.co.th>',
// Authentication
token: process.env.RENOVATE_TOKEN,
// GitHub token for accessing GitHub releases (optional but recommended)
hostRules: [
{
hostType: 'github',
token: process.env.GITHUB_TOKEN,
}
],
// Repository discovery
autodiscover: true,
autodiscoverFilter: ['B4L/*'], // Adjust to your organization/user
// Or specify repositories explicitly:
// repositories: ['B4L/vintage-collection'],
// Configuration
onboardingConfigFileName: 'renovate.json',
requireConfig: 'optional', // Allow repos without renovate.json
// Performance optimization
optimizeForDisabled: true,
// Rate limiting
prConcurrentLimit: 5,
prHourlyLimit: 2,
// Caching
cacheDir: '/tmp/renovate/cache',
repositoryCache: 'enabled',
};