Move renovate config to file, use renovate-full image

This commit is contained in:
Finn 2024-10-14 10:31:36 -07:00
parent b3b63977af
commit 2952eb74b4
4 changed files with 36 additions and 26 deletions

View file

@ -13,3 +13,6 @@ configMapGenerator:
- name: forgejo-templates-base
files:
- forgejo-templates-base/head_navbar.tmpl
- name: renovate-config
files:
- renovate/config.js

View file

@ -0,0 +1,10 @@
module.exports = {
autodiscover: true,
endpoint: 'https://git.janky.solutions',
gitAuthor: 'Renovate Bot <renovatebot@janky.solutions>',
platform: 'gitea',
allowScripts: true,
allowedPostUpgradeCommands: [
".*"
]
};

View file

@ -11,21 +11,18 @@ spec:
spec:
containers:
- name: renovate
image: renovate/renovate:38
image: renovate/renovate:38.121-full
env:
- name: RENOVATE_CONFIG_FILE
value: /etc/renovate/config.js
envFrom:
- secretRef:
name: renovate
- configMapRef:
name: renovate
volumeMounts:
- name: renovate-config
mountPath: /etc/renovate
restartPolicy: Never
---
apiVersion: v1
kind: ConfigMap
metadata:
name: renovate
data:
RENOVATE_AUTODISCOVER: 'true'
RENOVATE_ENDPOINT: 'https://git.janky.solutions'
RENOVATE_GIT_AUTHOR: 'Renovate Bot <renovatebot@janky.solutions>'
RENOVATE_PLATFORM: gitea
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: docker run --rm -v $(pwd):/infra -w /infra git.devhack.net/devhack/containers/deployer:latest -- ./helm/render-all.sh
volumes:
- name: renovate-config
configMap:
name: renovate-config

View file

@ -10,9 +10,9 @@
},
"postUpgradeTasks": {
"commands": [
"docker run --rm -v $(pwd):/infra -w /infra git.devhack.net/devhack/containers/deployer:latest -- ./helm/render-all.sh"
"./helm/render-all.sh"
],
"fileFilters": [
"fileMatch": [
"helm/**"
],
"executionMode": "update"