From 13107aa72ad27df9a81434308d3e9e969f89fdfb Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Thu, 3 Oct 2024 13:44:54 +0000 Subject: [PATCH] Renovate as cronjob Signed-off-by: Martyn Ranyard --- apps-kustomized/renovate/cronjob.yaml | 36 +++++++++++++++++++++++++++ everything-app/renovate.yaml | 17 +++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 apps-kustomized/renovate/cronjob.yaml create mode 100644 everything-app/renovate.yaml diff --git a/apps-kustomized/renovate/cronjob.yaml b/apps-kustomized/renovate/cronjob.yaml new file mode 100644 index 0000000..37458e4 --- /dev/null +++ b/apps-kustomized/renovate/cronjob.yaml @@ -0,0 +1,36 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: renovate +spec: + schedule: '@daily' + concurrencyPolicy: Forbid + jobTemplate: + spec: + template: + spec: + containers: + - name: renovate + # Update this to the latest available and then enable Renovate on + # the manifest + image: renovate/renovate:38.101.1 + args: + - user/repo + # Environment Variables + env: + - name: LOG_LEVEL + value: info + - name: RENOVATE_AUTODISCOVER + value: 'true' + - name: RENOVATE_ENDPOINT + value: https://git.martyn.berlin + - name: RENOVATE_PLATFORM + value: gitea #actually forgejo but renovate calls it gitea + - name: RENOVATE_GIT_AUTHOR + value: 'Renovate bot ' + - name: RENOVATE_TOKEN + valueFrom: + secretKeyRef: + name: renovate-env + key: RENOVATE_TOKEN + restartPolicy: Never diff --git a/everything-app/renovate.yaml b/everything-app/renovate.yaml new file mode 100644 index 0000000..3aeb2b0 --- /dev/null +++ b/everything-app/renovate.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: renovate + namespace: argocd +spec: + destination: + namespace: git + server: https://kubernetes.default.svc + project: apps + source: + path: apps-kustomized/renovate + repoURL: https://git.martyn.berlin/martyn/infra4talos + targetRevision: HEAD + syncPolicy: + automated: + selfHeal: true