Skip to content

Commit 975c8dc

Browse files
[skip-release] Migrate renovate config (#438)
* Migrate config renovate.json * have validator use docker, too --------- Co-authored-by: isle-buildkit-renovate[bot] <193913961+isle-buildkit-renovate[bot]@users.noreply.github.com> Co-authored-by: Joe Corall <jjc223@lehigh.edu>
1 parent b7705e1 commit 975c8dc

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/validate-renovate.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1818

19-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
20-
with:
21-
node-version: 22
22-
23-
- run: npx -p renovate renovate-config-validator renovate.json
19+
- run: |
20+
set -eou pipefail
21+
docker run \
22+
--env LOG_LEVEL \
23+
--rm \
24+
-v $(pwd):/usr/src/app \
25+
renovate/renovate renovate-config-validator renovate.json

renovate.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114
{
115115
"customType": "regex",
116116
"description": "Update (COMMIT|_VERSION) variables in Dockerfiles",
117-
"fileMatch": [
118-
"(^|/|\\.)Dockerfile$",
119-
"(^|/)Dockerfile\\.[^/]*$"
117+
"managerFilePatterns": [
118+
"/(^|/|\\.)Dockerfile$/",
119+
"/(^|/)Dockerfile\\.[^/]*$/"
120120
],
121121
"matchStrings": [
122122
"([ ]+)?# renovate: datasource=(?<datasource>[a-z-\\.]+?) depName=(?<depName>.+?)(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG)? .+?_VERSION=(?<currentValue>.+?)(\\s|$)",
@@ -127,8 +127,8 @@
127127
{
128128
"customType": "regex",
129129
"description": "Update alpine",
130-
"fileMatch": [
131-
"(^|/|\\.)docker-bake\\.hcl$"
130+
"managerFilePatterns": [
131+
"/(^|/|\\.)docker-bake\\.hcl$/"
132132
],
133133
"matchStrings": [
134134
"\\s+alpine\\s=\\s\"docker-image:\\/\\/(?<depName>alpine):(?<currentValue>[\\w\\.-]+)@sha256:(?<currentDigest>[a-f0-9]{64})\""
@@ -143,7 +143,7 @@
143143
"format": "html",
144144
"transformTemplates": [
145145
"{ \"releases\":[ $map($filter(releases.version,function($v,$i,$a){ $match($v, /^(v)?\\d+\\.\\d+\\.\\d+(\\/)?$/) }),function($v,$i,$a){ { \"version\": $match($v, /\\d+\\.\\d+\\.\\d+/).match } })] }"
146-
]
146+
]
147147
},
148148
"handle": {
149149
"defaultRegistryUrlTemplate": "https://handle.net/hnr-source/",

0 commit comments

Comments
 (0)