From f116012a3725de47c368f6f9ab00d62a5cb3324d Mon Sep 17 00:00:00 2001 From: Finn Date: Sat, 7 Sep 2024 21:55:41 -0700 Subject: [PATCH] Add renovatebot --- k8s/forgejo/kustomization.yaml | 1 + k8s/forgejo/renovatebot.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 k8s/forgejo/renovatebot.yaml diff --git a/k8s/forgejo/kustomization.yaml b/k8s/forgejo/kustomization.yaml index 8635c0c..67a708c 100644 --- a/k8s/forgejo/kustomization.yaml +++ b/k8s/forgejo/kustomization.yaml @@ -8,6 +8,7 @@ resources: - services.yaml - statefulset.yaml - secrets.yaml + - renovatebot.yaml configMapGenerator: - name: forgejo-templates-base files: diff --git a/k8s/forgejo/renovatebot.yaml b/k8s/forgejo/renovatebot.yaml new file mode 100644 index 0000000..abd28f8 --- /dev/null +++ b/k8s/forgejo/renovatebot.yaml @@ -0,0 +1,30 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: renovate +spec: + schedule: '@hourly' + concurrencyPolicy: Forbid + jobTemplate: + spec: + template: + spec: + containers: + - name: renovate + image: renovate/renovate:38 + envFrom: + - secretRef: + name: renovate + - configMapRef: + name: 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 ' + RENOVATE_PLATFORM: gitea