chore(renovate-operator): use config.js
This commit is contained in:
parent
47a110d564
commit
486542e783
3 changed files with 25 additions and 22 deletions
|
|
@ -5,18 +5,29 @@ metadata:
|
||||||
name: renovate-config
|
name: renovate-config
|
||||||
namespace: renovate-operator
|
namespace: renovate-operator
|
||||||
data:
|
data:
|
||||||
config.json: |-
|
config.js: |-
|
||||||
|
module.exports = {
|
||||||
|
platform: 'forgejo',
|
||||||
|
endpoint: 'https://code.peterg.nl/api/v1/',
|
||||||
|
gitAuthor: 'Renovate <renovate@peterg.nl>',
|
||||||
|
username: 'renovate',
|
||||||
|
autodiscover: true,
|
||||||
|
onboardingConfig: {
|
||||||
|
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
||||||
|
extends: ['config:recommended'],
|
||||||
|
},
|
||||||
|
optimizeForDisabled: true,
|
||||||
|
persistRepoData: true,
|
||||||
|
hostRules: [
|
||||||
{
|
{
|
||||||
"hostRules": [
|
matchHost: 'docker.io',
|
||||||
{
|
username: process.env.DOCKER_USERNAME,
|
||||||
"matchHost": "docker.io",
|
password: process.env.DOCKER_TOKEN,
|
||||||
"username": "{{ process.env.DOCKER_USERNAME }}",
|
|
||||||
"password": "{{ process.env.DOCKER_TOKEN }}"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matchHost": "registry-1.docker.io",
|
matchHost: 'registry-1.docker.io',
|
||||||
"username": "{{ process.env.DOCKER_USERNAME }}",
|
username: process.env.DOCKER_USERNAME,
|
||||||
"password": "{{ process.env.DOCKER_TOKEN }}"
|
password: process.env.DOCKER_TOKEN,
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
};
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,5 @@ spec:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: renovate-operator-docker-login
|
name: renovate-operator-docker-login
|
||||||
extraEnv:
|
extraEnv:
|
||||||
- name: LOG_LEVEL
|
|
||||||
value: debug
|
|
||||||
- name: RENOVATE_ONBOARDING
|
|
||||||
value: "true"
|
|
||||||
- name: RENOVATE_AUTODISCOVER
|
|
||||||
value: "true"
|
|
||||||
- name: RENOVATE_GIT_AUTHOR
|
|
||||||
value: "Renovate <renovate@peterg.nl>"
|
|
||||||
- name: RENOVATE_CONFIG_FILE
|
- name: RENOVATE_CONFIG_FILE
|
||||||
value: /config/config.json
|
value: /config/config.js
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ spec:
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: /secrets/managed/renovate/token
|
key: /secrets/managed/renovate/token
|
||||||
property: RENOVATE_TOKEN
|
property: RENOVATE_TOKEN
|
||||||
- secretKey: GITHUB_COM_TOKEN
|
- secretKey: RENOVATE_GITHUB_TOKEN
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: /secrets/managed/renovate/token
|
key: /secrets/managed/renovate/token
|
||||||
property: GITHUB_COM_TOKEN
|
property: GITHUB_COM_TOKEN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue