infrastructure/flux/cluster/apps/gitops/renovate/renovate-infrastructure.yaml

85 lines
2.2 KiB
YAML
Raw Normal View History

2022-05-18 17:22:45 +02:00
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: renovate-infrastructure
namespace: gitops
spec:
2022-05-20 11:13:11 +02:00
schedule: "@hourly"
2022-05-18 17:22:45 +02:00
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
volumes:
2022-05-20 11:13:11 +02:00
- name: config-volume
configMap:
name: renovate-config
- name: work-volume
emptyDir: {}
2022-05-18 17:22:45 +02:00
containers:
- name: renovate
image: renovate/renovate:32.64
2022-05-18 17:22:45 +02:00
volumeMounts:
- name: config-volume
mountPath: /opt/renovate/
- name: work-volume
mountPath: /tmp/renovate/
env:
- name: LOG_LEVEL
value: debug
- name: RENOVATE_ENDPOINT
2022-05-20 11:13:11 +02:00
value: "https://git.0x76.dev/api/v1/"
2022-05-18 17:22:45 +02:00
- name: RENOVATE_PLATFORM
value: gitea
- name: RENOVATE_AUTODISCOVER
2022-05-20 11:13:11 +02:00
value: "false"
2022-05-18 17:22:45 +02:00
- name: RENOVATE_GIT_AUTHOR
2022-05-20 11:13:11 +02:00
value: "Renovate Bot <renovate@xirion.net>"
2022-05-18 17:22:45 +02:00
- name: RENOVATE_CONFIG_FILE
2022-05-20 11:13:11 +02:00
value: "/opt/renovate/config.json"
2022-05-18 17:22:45 +02:00
- name: RENOVATE_BASE_DIR
2022-05-20 11:13:11 +02:00
value: "/tmp/renovate"
2022-05-18 17:22:45 +02:00
envFrom:
- secretRef:
name: renovate
restartPolicy: Never
---
apiVersion: v1
kind: ConfigMap
metadata:
name: renovate-config
2022-05-18 17:24:53 +02:00
namespace: gitops
2022-05-18 17:22:45 +02:00
data:
config.json: |-
{
2022-05-18 19:25:49 +02:00
"extends": ["github>whitesource/merge-confidence:beta"],
2022-05-18 17:22:45 +02:00
"repositories": ["v/infrastructure"],
"flux": {
"fileMatch": ["flux/.+\\.yaml$"]
},
2022-05-18 19:25:49 +02:00
"helm-values": {
"fileMatch": ["flux/.+\\.yaml$"]
},
2022-05-18 17:22:45 +02:00
"kubernetes": {
"fileMatch": ["flux/.+\\.yaml$"]
2022-05-20 10:51:15 +02:00
},
2022-05-20 11:30:33 +02:00
hostRules: [
{
hostType: 'docker',
matchHost: 'ghcr.io',
username: 'NULLx76',
password: process.env.GITHUB_COM_TOKEN
}
],
2022-05-20 10:51:15 +02:00
"packageRules": [
2022-05-20 11:13:11 +02:00
{
"automerge": true,
"automergeType": "branch",
"matchPackageNames": [
"renovate/renovate"
]
}
2022-05-20 10:51:15 +02:00
]
2022-05-18 17:22:45 +02:00
}