Skip to content

Commit 536811c

Browse files
Merge pull request #6 from OpenCHAMI/fix/renovate-config-issue-5
fix(renovate): resolve invalid config blocking Renovate PRs
2 parents efc1d68 + 0e75d62 commit 536811c

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

.github/renovate.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,12 @@
2727
"customManagers": [
2828
{
2929
"customType": "regex",
30-
"description": "Bump OpenCHAMI service image tags in images/*.env",
30+
"description": "Bump explicitly-annotated image tags in images/*.env (both OpenCHAMI services and third-party images). packageRules below scope behaviour per registry.",
3131
"fileMatch": [
3232
"^images/.+\\.env$"
3333
],
3434
"matchStrings": [
35-
"# renovate:\\s*datasource=docker(?:\\s+versioning=(?<versioning>[a-z]+))?\\s*\\nSBX_[A-Z_]+_IMAGE=(?<depName>ghcr\\.io/openchami/[^:\\s]+):(?<currentValue>[^\\s]+)"
36-
],
37-
"datasourceTemplate": "docker",
38-
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}loose{{/if}}"
39-
},
40-
{
41-
"customType": "regex",
42-
"description": "Bump any other explicitly-annotated image tags in images/*.env",
43-
"fileMatch": [
44-
"^images/.+\\.env$"
45-
],
46-
"matchStrings": [
47-
"# renovate:\\s*datasource=docker(?:\\s+versioning=(?<versioning>[a-z]+))?\\s*\\nSBX_[A-Z_]+_IMAGE=(?<depName>(?!ghcr\\.io/openchami/)[^:\\s]+):(?<currentValue>[^\\s]+)"
35+
"# renovate:\\s*datasource=docker(?:\\s+versioning=(?<versioning>[a-z]+))?\\s*\\nSBX_[A-Z_]+_IMAGE=(?<depName>[^:\\s]+):(?<currentValue>[^\\s]+)"
4836
],
4937
"datasourceTemplate": "docker",
5038
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}loose{{/if}}"
@@ -54,15 +42,14 @@
5442
"packageRules": [
5543
{
5644
"description": "Group all OpenCHAMI service bumps into one PR per release wave so the sandbox tests them together — the way they actually deploy.",
57-
"matchPackagePrefixes": ["ghcr.io/openchami/"],
45+
"matchPackageNames": ["ghcr.io/openchami/**"],
5846
"groupName": "openchami services",
5947
"schedule": ["after 9pm every weekday", "before 6am every weekday", "every weekend"]
6048
},
6149
{
6250
"description": "Don't chase pre-release tags (pr-*, rc.*, alpha, beta). Renovate's default would otherwise open noisy PRs for every PR build pushed to ghcr.",
63-
"matchPackagePatterns": ["^ghcr\\.io/openchami/"],
64-
"ignoreUnstable": true,
65-
"matchUpdateTypes": ["major", "minor", "patch"]
51+
"matchPackageNames": ["ghcr.io/openchami/**"],
52+
"ignoreUnstable": true
6653
},
6754
{
6855
"description": "Auto-merge sandbox-fixture and tooling-only PRs that pass CI. Service bumps stay manual — they're the whole point of the sandbox: a human should look at the PR diff.",

0 commit comments

Comments
 (0)