From 6a5e295b62551e4d3b0b0d153c09dc4364abedc3 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 8 Oct 2022 03:17:19 +0200
Subject: [PATCH] ci(charts): Allow automatic appversion upgrades

This patch configures renovate to allow manual addition of a comment
that specifies the image which a helm chart deploys. Should make sure
that no image updates are missed.
---
 charts/keycloak/Chart.yaml |  1 +
 renovate.json              | 10 +++++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/charts/keycloak/Chart.yaml b/charts/keycloak/Chart.yaml
index 7664cb20a..f55db35f8 100644
--- a/charts/keycloak/Chart.yaml
+++ b/charts/keycloak/Chart.yaml
@@ -8,4 +8,5 @@ sources:
   - https://git.shivering-isles.com/shivering-isles/infrastructure-gitops
   - https://github.com/keycloak/keycloak
 version: 0.4.4
+# renovate: image=quay.io/keycloak/keycloak
 appVersion: "19.0.2"
diff --git a/renovate.json b/renovate.json
index 23af1b6b5..fcbc534bf 100644
--- a/renovate.json
+++ b/renovate.json
@@ -19,13 +19,21 @@
     "fileMatch": ["\.gitlab-ci\.yml$", "gitlab-ci\.yaml$"]
   },
   "regexManagers": [
-  {
+    {
       "fileMatch": ["\\.yaml$"],
       "matchStrings": [
         "# renovate:\\n\\s+image: \"?'?(?<depName>[^:\\s]+?):(?<currentValue>[^\"]*?)\"?'?\\s"
       ],
       "datasourceTemplate": "docker",
       "versioningTemplate": "docker"
+    },
+    {
+      "fileMatch": ["charts\\/.*\\/Chart\\.yaml$"],
+      "matchStrings": [
+        "# renovate:\\s+image=(?<depName>[^:\\s]+?)\\nappVersion:\\s+\"?'?(?<currentValue>[^\"]*?)\"?'?$"
+      ],
+      "datasourceTemplate": "docker",
+      "versioningTemplate": "docker"
     }
   ],
   "packageRules": [
-- 
GitLab