From 90db5f3169f80f0fe38567016cba4c254125f96d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 21 Feb 2025 15:05:41 +0000 Subject: [PATCH] Migrate config renovate.json5 --- renovate.json5 | 177 +++++++++++++++++++++++++------------------------ 1 file changed, 89 insertions(+), 88 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index 481fa53..fc423cf 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -1,124 +1,125 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", + $schema: 'https://docs.renovatebot.com/renovate-schema.json', extends: [ 'config:best-practices', ':disableRateLimiting', ], baseBranches: [ - // don't run on renovate branches - "$default", - // See https://docs.renovatebot.com/configuration-options/#basebranches - // baseBranches supports Regular Expressions that must begin and end with / - ], //See also possible support for multiple base branches, one per K8S minor version https://docs.renovatebot.com/configuration-options/#basebranches - "packageRules": [ + '$default', + ], + packageRules: [ { - "description": "@JCL38-ORANGE assignments", - "matchPackagePatterns": [ - "*" + description: '@JCL38-ORANGE assignments', + assignees: [ + 'JCL38-ORANGE', + ], + matchPackageNames: [ + '*', ], - "assignees": [ - "JCL38-ORANGE" - ] }, { - description: "Add common labels", - matchDepNames: ["*"], + description: 'Add common labels', + matchDepNames: [ + '*', + ], addLabels: [ - // See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields - "datasource/{{datasource}}", - "depName/{{depNameSanitized}}", - "manager/{{manager}}", - ] + 'datasource/{{datasource}}', + 'depName/{{depNameSanitized}}', + 'manager/{{manager}}', + ], }, { description: 'Auto-merge patch releases, e.g. from 1.25.1 to 1.25.2', matchPackageNames: [ 'golang', ], - //see https://docs.renovatebot.com/key-concepts/automerge/#automerge-non-major-updates matchUpdateTypes: [ 'patch', - 'minor' + 'minor', ], matchCurrentVersion: '!/-rc/', automerge: true, - //see https://docs.renovatebot.com/key-concepts/automerge/#absence-of-tests ignoreTests: true, - } + }, ], - "regexManagers": [ + customManagers: [ { - "description": "XK6_MONGO version in DockerFile", - "fileMatch": ["Dockerfile$"], - "matchStrings": [ - "ENV XK6_MONGO_VERSION=\"(?.*)\"" - ], - "depNameTemplate": "GhMartingit/xk6-mongo", - "datasourceTemplate": "github-releases", - "versioningTemplate": "regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$" + customType: 'regex', + description: 'XK6_MONGO version in DockerFile', + fileMatch: [ + 'Dockerfile$', + ], + matchStrings: [ + 'ENV XK6_MONGO_VERSION="(?.*)"', + ], + depNameTemplate: 'GhMartingit/xk6-mongo', + datasourceTemplate: 'github-releases', + versioningTemplate: 'regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$', }, { - "description": "XK6_SQL_DRIVER_POSTGRES version in DockerFile", - "fileMatch": ["Dockerfile$"], - "matchStrings": [ - "ENV XK6_SQL_DRIVER_POSTGRES_VERSION=\"(?.*)\"" - ], - "depNameTemplate": "grafana/xk6-sql-driver-postgres", - "datasourceTemplate": "github-releases", - "versioningTemplate": "regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$" + customType: 'regex', + description: 'XK6_SQL_DRIVER_POSTGRES version in DockerFile', + fileMatch: [ + 'Dockerfile$', + ], + matchStrings: [ + 'ENV XK6_SQL_DRIVER_POSTGRES_VERSION="(?.*)"', + ], + depNameTemplate: 'grafana/xk6-sql-driver-postgres', + datasourceTemplate: 'github-releases', + versioningTemplate: 'regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$', }, { - "description": "XK6_SQL_DRIVER_MYSQL version in DockerFile", - "fileMatch": ["Dockerfile$"], - "matchStrings": [ - "ENV XK6_SQL_DRIVER_MYSQL_VERSION=\"(?.*)\"" - ], - "depNameTemplate": "grafana/xk6-sql-driver-mysql", - "datasourceTemplate": "github-releases", - "versioningTemplate": "regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$" + customType: 'regex', + description: 'XK6_SQL_DRIVER_MYSQL version in DockerFile', + fileMatch: [ + 'Dockerfile$', + ], + matchStrings: [ + 'ENV XK6_SQL_DRIVER_MYSQL_VERSION="(?.*)"', + ], + depNameTemplate: 'grafana/xk6-sql-driver-mysql', + datasourceTemplate: 'github-releases', + versioningTemplate: 'regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$', }, { - "description": "XK6_SQL version in DockerFile", - "fileMatch": ["Dockerfile$"], - "matchStrings": [ - "ENV XK6_SQL_VERSION=\"(?.*)\"" - ], - "depNameTemplate": "grafana/xk6-sql", - "datasourceTemplate": "github-releases", - "versioningTemplate": "regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$" + customType: 'regex', + description: 'XK6_SQL version in DockerFile', + fileMatch: [ + 'Dockerfile$', + ], + matchStrings: [ + 'ENV XK6_SQL_VERSION="(?.*)"', + ], + depNameTemplate: 'grafana/xk6-sql', + datasourceTemplate: 'github-releases', + versioningTemplate: 'regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$', }, { - "description": "XK6_LOKI version in DockerFile", - "fileMatch": ["Dockerfile$"], - "matchStrings": [ - "ENV XK6_LOKI_VERSION=\"(?.*)\"" - ], - "depNameTemplate": "grafana/xk6-loki", - "datasourceTemplate": "github-releases", - "versioningTemplate": "regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$" + customType: 'regex', + description: 'XK6_LOKI version in DockerFile', + fileMatch: [ + 'Dockerfile$', + ], + matchStrings: [ + 'ENV XK6_LOKI_VERSION="(?.*)"', + ], + depNameTemplate: 'grafana/xk6-loki', + datasourceTemplate: 'github-releases', + versioningTemplate: 'regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$', }, { - "description": "XK6_BUILDER version in DockerFile", - "fileMatch": ["Dockerfile$"], - "matchStrings": [ - "ENV XK6_BUILDER_VERSION=\"(?.*)\"" - ], - "depNameTemplate": "grafana/xk6", - "datasourceTemplate": "github-releases", - "versioningTemplate": "regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$" - } + customType: 'regex', + description: 'XK6_BUILDER version in DockerFile', + fileMatch: [ + 'Dockerfile$', + ], + matchStrings: [ + 'ENV XK6_BUILDER_VERSION="(?.*)"', + ], + depNameTemplate: 'grafana/xk6', + datasourceTemplate: 'github-releases', + versioningTemplate: 'regex:v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?(?-[0-9A-Za-z-\\.]+)?$', + }, ], -// customManagers: [ -// { -// customType: 'regex', -// fileMatch: ["Dockerfile$"], -// "matchStrings": [ -// // For dockerfile: https://regex101.com/r/iJfnnL/1 -// "datasource=(?github-releases) depName=(?[\\w\\d\\//\\-\\_]+)\\nENV .+_VERSION[\\s*|=]??\\\"?(?[\\w\\d\\/\\-\\.\\_]+)\\\"?\\s*", -// ], -// // datasourceTemplate: "{{datasource}}", // should not be required as we extract datasource -// versioningTemplate: "regex:(?\\d+)\\.(?\\d+)\\.(?\\d+)?$", -// extractVersionTemplate: "^v?(?.*)$" -// } -// ] -} \ No newline at end of file +}