From 01e01a3a5cd4741a06d04031587ecf6fe0e71711 Mon Sep 17 00:00:00 2001
From: RahulGautamSingh <rahultesnik@gmail.com>
Date: Thu, 30 Jan 2025 12:15:40 +0530
Subject: [PATCH] feat(presets/workaround): ubuntuDockerVersioning (#33714)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
---
 lib/config/presets/internal/workarounds.ts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/config/presets/internal/workarounds.ts b/lib/config/presets/internal/workarounds.ts
index df7c8ac173..b1038a2cd6 100644
--- a/lib/config/presets/internal/workarounds.ts
+++ b/lib/config/presets/internal/workarounds.ts
@@ -24,6 +24,7 @@ export const presets: Record<string, Preset> = {
       'workarounds:k3sKubernetesVersioning',
       'workarounds:rke2KubernetesVersioning',
       'workarounds:libericaJdkDockerVersioning',
+      'workarounds:ubuntuDockerVersioning',
     ],
     ignoreDeps: [], // Hack to improve onboarding PR description
   },
@@ -292,4 +293,14 @@ export const presets: Record<string, Preset> = {
       },
     ],
   },
+  ubuntuDockerVersioning: {
+    description: 'Use ubuntu versioning for `ubuntu` docker images.',
+    packageRules: [
+      {
+        matchDatasources: ['docker'],
+        matchDepNames: ['ubuntu'],
+        versioning: 'ubuntu',
+      },
+    ],
+  },
 };
-- 
GitLab