From dc6377ba6fdd77ba30fbee1bd2f70b083879cb8b Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH] chore(renovate): detect every image that takes its tag from a variable The regex manager needed a "# renovate: depName=" annotation above the image line and the compose file in a list, and it only understood a plain x.y.z tag. opensearch was pinned but had neither, so it was never updated. Read the image name from the image line itself, scan all yaml files and accept any tag, with or without a digest. An image is picked up as soon as its tag is the default of a variable, nothing else to remember. --- docker-compose.yml | 1 - renovate.json | 9 ++------- thumbnails/imagor.yml | 1 - yjs/yjs.yml | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8d6cc5e..08faee8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,6 @@ --- services: opencloud: - # renovate: depName=opencloudeu/opencloud-rolling image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-9.2.0} # changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog # release notes: https://docs.opencloud.eu/opencloud_release_notes.html diff --git a/renovate.json b/renovate.json index 5e07ae4..0af79ea 100644 --- a/renovate.json +++ b/renovate.json @@ -31,14 +31,9 @@ "customManagers": [ { "customType": "regex", - "managerFilePatterns": [ - "/^docker-compose\\.yml$/", - "/^weboffice\\/collabora\\.yml$/", - "/^yjs\\/yjs\\.yml$/", - "/^thumbnails\\/imagor\\.yml$/" - ], + "managerFilePatterns": ["/.+\\.ya?ml$/"], "matchStrings": [ - "# renovate: depName=(?[^\\s]+)\\n\\s+image: \\$\\{[^}]+\\}:\\$\\{[^}]+-(?[0-9]+\\.[0-9]+\\.[0-9]+)\\}" + "image: \\$\\{[^}:]+:-(?[^}]+)\\}:\\$\\{[^}:]+:-(?[^@}]+)(?:@(?sha256:[a-f0-9]+))?\\}" ], "datasourceTemplate": "docker" } diff --git a/thumbnails/imagor.yml b/thumbnails/imagor.yml index 2ef4f87..2026082 100644 --- a/thumbnails/imagor.yml +++ b/thumbnails/imagor.yml @@ -1,7 +1,6 @@ --- services: imagor: - # renovate: depName=shumc/imagor image: ${IMAGOR_DOCKER_IMAGE:-shumc/imagor}:${IMAGOR_DOCKER_TAG:-1.10.4} environment: IMAGOR_UNSAFE: "true" diff --git a/yjs/yjs.yml b/yjs/yjs.yml index ea16d55..ec4e8f3 100644 --- a/yjs/yjs.yml +++ b/yjs/yjs.yml @@ -7,7 +7,6 @@ services: # the /yjs route is configured in the proxy - ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml yjs: - # renovate: depName=opencloudeu/yjs image: ${YJS_DOCKER_IMAGE:-opencloudeu/yjs}:${YJS_DOCKER_TAG:-1.1.1} user: ${OC_CONTAINER_UID_GID:-1000:1000} networks: