24 lines
966 B
JavaScript
24 lines
966 B
JavaScript
module.exports = {
|
|
platform: 'gitea',
|
|
endpoint: 'http://gitea-server:3000', // set this to the url of your gitea instance
|
|
gitAuthor: 'Renovate Bot <crunchylab@crunchymetal.com>', // set the email address to whatever email your gave this user in your gitea
|
|
username: 'renovate-bot',
|
|
autodiscover: true,
|
|
onboardingConfig: {
|
|
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
|
extends: ['config:recommended'],
|
|
},
|
|
optimizeForDisabled: true,
|
|
persistRepoData: true,
|
|
hostRules: [
|
|
{
|
|
// This rule applies to any host that Renovate's internal Git client tries to connect to
|
|
// that matches 'crunchy-orchestrator:3000'.
|
|
matchHost: 'crunchy-orchestrator:3000',
|
|
// Instead of crunchy-orchestrator:3000, use gitea-server:3000
|
|
replaceHost: 'gitea-server:3000',
|
|
// Ensure the token is also applied for this replacement host
|
|
token: process.env.RENOVATE_TOKEN, // Use the same token you pass via env
|
|
},
|
|
],
|
|
}; |