Skip to content

Instantly share code, notes, and snippets.

@ngshiheng
Last active April 4, 2022 14:53
Show Gist options
  • Save ngshiheng/c10097455c624d6b670e0da79e80b5c4 to your computer and use it in GitHub Desktop.
Save ngshiheng/c10097455c624d6b670e0da79e80b5c4 to your computer and use it in GitHub Desktop.
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
// 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'],
};
// 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,
},
],
},
],
}
// 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'],
};
// 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