Skip to content

Instantly share code, notes, and snippets.

@karl-johan-grahn
Last active June 21, 2022 07:04
Show Gist options
  • Select an option

  • Save karl-johan-grahn/ce80490d5eedfe49a951b3a53027a413 to your computer and use it in GitHub Desktop.

Select an option

Save karl-johan-grahn/ce80490d5eedfe49a951b3a53027a413 to your computer and use it in GitHub Desktop.
module.exports = {
platform: 'gitlab',
endpoint: 'https://git.<instance>/api/v4/',
baseBranches: ['master'],
labels: ['renovate'],
repositories: [
"path/to/project1",
"path/to/project2",
],
binarySource: 'install',
onboarding: true,
extends: [
'config:base'
],
npmrc: "@<company>:registry=https://nexus.<url>/repository/<companyy>_npm/\n@<company>-rmp:registry=https://nexus.<url>/repository/<company>_npm/\n//nexus.<url>/repository/<companny>_npm/:_authToken=${NPM_TOKEN}",
exposeAllEnv: true,
hostRules: [
{
hostType: 'docker',
matchHost: 'nexus.<url>',
username: process.env.nexus_user,
password: process.env.nexus_password,
},
{
hostType: 'maven',
matchHost: 'nexus.<url>',
username: process.env.nexus_user,
password: process.env.nexus_password,
},
{
hostType: 'pypi',
matchHost: '<gitlab instance>',
username: 'gitlab-ci-token',
password: process.env.RENOVATE_TOKEN,
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment