From 7c08353d848ee8ef21fdc110fcbfb2417526caf2 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Sat, 4 Jan 2025 10:35:56 -0500 Subject: [PATCH] Handle buildkit updates with renovate --- Dockerfile | 1 + libops.yml | 3 ++- renovate.json5 | 59 ++++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 58 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c36c4c8..dd5c8254 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ ARG BASE_IMAGE="us-docker.pkg.dev/libops-images/shared/isle-drupal" +# this is set in libops.yml as "islandora-tag" ARG ISLANDORA_TAG=main FROM ${BASE_IMAGE}:${ISLANDORA_TAG} diff --git a/libops.yml b/libops.yml index 2d4b454b..f3d83803 100644 --- a/libops.yml +++ b/libops.yml @@ -1,5 +1,6 @@ version: 1.0 -islandora-tag: 3.4 +# renovate: datasource=github-releases depName=isle-buildkit packageName=Islandora-Devops/isle-buildkit +islandora-tag: 3.4.9 https-firewall: [] ssh-firewall: [] blocked-ips: [] diff --git a/renovate.json5 b/renovate.json5 index 88da2d66..c8996d47 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -5,7 +5,8 @@ ':rebaseStalePrs' ], enabledManagers: [ - 'composer' + 'composer', + 'custom.regex' ], packageRules: [ { @@ -14,12 +15,62 @@ 'patch', 'digest', ], - groupName: 'bump dependencies', + matchManagers: [ + 'custom.regex' + ], + groupName: 'bump buildkit', + schedule: [ + 'before 10am on Monday', + ] + }, + { + matchUpdateTypes: [ + 'major', + ], + matchManagers: [ + 'custom.regex' + ], + groupName: 'major buildkit update', + schedule: [ + '* 0-5 1-7 * 1' + ] + }, + { + matchUpdateTypes: [ + 'minor', + 'patch', + 'digest', + ], + matchManagers: [ + 'composer', + ], + groupName: 'bump composer deps', schedule: [ 'after 10pm on Wednesday', + ] + }, + { + matchUpdateTypes: [ + 'major', + ], + matchManagers: [ + 'composer', + ], + groupName: 'major composer updates', + schedule: [ + '* 0-5 8-14 * 1' + ], + } + ], + customManagers: [ + { + customType: "regex", + description: "Update buildkit tag in libops.yml", + fileMatch: [ + "^libops\\.yml$", ], - matchPackageNames: [ - '*', + "matchStrings": [ + "# renovate: datasource=(?[a-z-]+?) depName=(?.+?) packageName=(?.+?)\\sislandora-tag: (?[\\d\\.]+?)" ] } ],