add renovate

This commit is contained in:
2025-05-27 10:02:22 -04:00
parent 8be1db7ef9
commit b4e3062480
4 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: renovate-config
data:
config.json: |-
{
"repositories": ["infrastructure/core-apps","infrastructure/db-operators","infrastructure/weyma-talos"]
}

View File

@@ -0,0 +1,49 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: renovate-bot
spec:
schedule: '@hourly'
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- image: renovate/renovate:40.14.6
name: renovate-bot
env: # For illustration purposes, please use secrets.
- name: RENOVATE_PLATFORM
value: 'gitea'
- name: RENOVATE_ENDPOINT
value: 'https://git.dubyatp.xyz/api/v1'
- name: RENOVATE_TOKEN
valueFrom:
secretKeyRef:
key: gitea-pat
name: renovate-gitea-token
- name: RENOVATE_GITHUB_COM_TOKEN
valueFrom:
secretKeyRef:
key: github-com-pat
name: renovate-github-com-token
- name: RENOVATE_AUTODISCOVER
value: 'false'
- name: RENOVATE_BASE_DIR
value: '/tmp/renovate/'
- name: RENOVATE_CONFIG_FILE
value: '/opt/renovate/config.json'
- name: LOG_LEVEL
value: debug
volumeMounts:
- name: config-volume
mountPath: /opt/renovate/
- name: work-volume
mountPath: /tmp/renovate/
restartPolicy: Never
volumes:
- name: config-volume
configMap:
name: renovate-config
- name: work-volume
emptyDir: {}

View File

@@ -0,0 +1,17 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: renovate-gitea-token
spec:
refreshInterval: 1h
secretStoreRef:
name: weyma-vault
kind: ClusterSecretStore
target:
name: renovate-gitea-token
creationPolicy: Owner
data:
- secretKey: gitea-pat
remoteRef:
key: renovate
property: gitea-pat

View File

@@ -0,0 +1,17 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: renovate-github-com-token
spec:
refreshInterval: 1h
secretStoreRef:
name: weyma-vault
kind: ClusterSecretStore
target:
name: renovate-github-com-token
creationPolicy: Owner
data:
- secretKey: github-com-pat
remoteRef:
key: renovate
property: github-com-pat