From 66bca740a7a52be2c0b6fd8adbc9dc02e334f360 Mon Sep 17 00:00:00 2001
From: Georg Krause <georg@funkwhale.audio>
Date: Sat, 22 Oct 2022 15:50:01 +0000
Subject: [PATCH] Configure renovate to place postgres update snippet

---
 .gitlab/renovate.json | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.gitlab/renovate.json b/.gitlab/renovate.json
index 940edb303e..6dbc4a610c 100644
--- a/.gitlab/renovate.json
+++ b/.gitlab/renovate.json
@@ -42,6 +42,14 @@
     {
       "matchPackageNames": ["@sentry/tracing", "@sentry/vue"],
       "groupName": "Sentry"
+    },
+    {
+      "matchFiles": ["deploy/docker-compose.yml"],
+      "matchPackageNames": ["postgres"],
+      "postUpgradeTasks": {
+        "commands": ["echo 'Upgrade Postgres to version {{ newVersion }}. Make sure to migrate!' > changes/changelog.d/postgres.update"],
+        "fileFilters": ["changes/changelog.d/postgres.update"]
+      }
     }
   ]
 }
-- 
GitLab