From a6613adf9c4bb962295a2106edf424e098d9d9f9 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Wed, 15 Jan 2025 20:42:46 +0000 Subject: [PATCH] chore: Fix renovate annotations regex --- renovate.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/renovate.json b/renovate.json index 3a9c791..7aa275d 100644 --- a/renovate.json +++ b/renovate.json @@ -9,9 +9,12 @@ { "customType": "regex", "description": "Update _VERSION variables in Dockerfiles", - "fileMatch": ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"], + "fileMatch": [ + "(^|/)([Dd]ocker|[Cc]ontainer)file[^/]*$", + "(^|/|\\.)([Dd]ocker|[Cc]ontainer)file$" + ], "matchStrings": [ - "# renovate: datasource=(?[a-z-]+?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?.+?)\\s" + "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s(?:ENV|ARG)\\s+[A-Za-z0-9_]+?_VERSION[ =][\"']?(?.+?)[\"']?\\s" ] } ],