Last active
April 4, 2022 14:53
-
-
Save ngshiheng/c10097455c624d6b670e0da79e80b5c4 to your computer and use it in GitHub Desktop.
12 Tips to Self-host Renovate Bot https://jerrynsh.com/12-tips-to-self-host-renovate-bot/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: renovate/renovate:32.6.12 | |
variables: | |
LOG_LEVEL: debug | |
renovate:on-schedule: | |
tags: | |
- your-gitlab-runner-tag-if-any | |
only: | |
- schedules | |
script: | |
- renovate $RENOVATE_EXTRA_FLAGS # optional: you can set this | |
renovate: | |
tags: | |
- your-gitlab-runner-tag-if-any | |
except: | |
- schedules | |
script: | |
- renovate $RENOVATE_EXTRA_FLAGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example config.js from https://github.com/renovatebot/renovate/blob/main/docs/usage/examples/self-hosting.md | |
module.exports = { | |
endpoint: 'https://self-hosted.gitlab/api/v4/', | |
token: '**gitlab_token**', | |
platform: 'gitlab', | |
onboardingConfig: { | |
extends: ['config:base'], | |
}, | |
repositories: ['username/repo', 'orgname/repo'], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example config.js | |
module.exports = { | |
endpoint: 'https://your.domain.com/api/v4/', | |
token: '**gitlab_token**', | |
platform: 'gitlab', | |
onboardingConfig: { | |
extends: ['config:base'], | |
}, | |
repositories: [ | |
{ | |
repository: 'john/next-generation-repo', | |
packageRules: [ | |
{ | |
description: 'Disable MAJOR update types', | |
matchUpdateTypes: ['major'], | |
enabled: false, | |
}, | |
], | |
}, | |
], | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example config.js | |
module.exports = { | |
endpoint: 'https://your.domain.com/api/v4/', | |
executionTimeout: 1440, // minutes | |
token: '**gitlab_token**', | |
platform: 'gitlab', | |
onboardingConfig: { | |
extends: ['config:base'], | |
}, | |
repositories: ['john/large-repo', 'doe/huge-repo'], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example config.js | |
module.exports = { | |
endpoint: 'https://your.domain.com/api/v4/', | |
token: '**gitlab_token**', | |
platform: 'gitlab', | |
persistRepoData: true, | |
onboardingConfig: { | |
extends: ['config:base'], | |
}, | |
repositories: ['john/repo'], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment