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

@ -2,14 +2,17 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: forgejo namespace: forgejo
resources: resources:
- namespace.yaml - namespace.yaml
- config.yaml - config.yaml
- ingress.yaml - ingress.yaml
- services.yaml - services.yaml
- statefulset.yaml - statefulset.yaml
- secrets.yaml - secrets.yaml
- renovatebot.yaml - renovatebot.yaml
configMapGenerator: configMapGenerator:
- name: forgejo-templates-base - name: forgejo-templates-base
files: files:
- forgejo-templates-base/head_navbar.tmpl - 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: spec:
containers: containers:
- name: renovate - name: renovate
image: renovate/renovate:38 image: renovate/renovate:38.121-full
env:
- name: RENOVATE_CONFIG_FILE
value: /etc/renovate/config.js
envFrom: envFrom:
- secretRef: - secretRef:
name: renovate name: renovate
- configMapRef: volumeMounts:
name: renovate - name: renovate-config
mountPath: /etc/renovate
restartPolicy: Never restartPolicy: Never
--- volumes:
apiVersion: v1 - name: renovate-config
kind: ConfigMap configMap:
metadata: name: renovate-config
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

View file

@ -10,9 +10,9 @@
}, },
"postUpgradeTasks": { "postUpgradeTasks": {
"commands": [ "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/**" "helm/**"
], ],
"executionMode": "update" "executionMode": "update"