Skip to content

Commit

Permalink
chore(renovate): add regex for most dependencies (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jul 12, 2023
1 parent 079b18f commit af3e2c2
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 9 deletions.
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
ARG NODE_VERSION=18.14.2
ARG JAVA_VERSION=11.0.18
ARG PHP_VERSION=8.1.16
ARG GO_VERSION=1.19.7
ARG DART_VERSION=3.0.0
# renovate: datasource=github-tags depName=nodejs/node versioning=node
ARG NODE_VERSION=18.16.1
# renovate: datasource=java-version depName=java
ARG JAVA_VERSION=11.0.19
# renovate: datasource=github-tags depName=php/php-sec
ARG PHP_VERSION=8.2.8
# renovate: datasource=golang-version depName=golang
ARG GO_VERSION=1.20.6
# renovate: datasource=dart-version depName=dart
ARG DART_VERSION=3.0.2

FROM golang:${GO_VERSION}-bullseye as go-builder

Expand Down
2 changes: 1 addition & 1 deletion config/.go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19.7
1.20.6
2 changes: 1 addition & 1 deletion config/.java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.0.18
11.0.19
2 changes: 1 addition & 1 deletion config/.php-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.1.16
8.2.8
69 changes: 68 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"package.mustache"
],
"matchStrings": [
"\"devDependencies\":\\s*{[^}]*}",
"\"(dev)?[dD]ependencies\":\\s*{[^}]*}",
"\\s\"(?<depName>.*?)\": \"(?<currentValue>.*?)\",?\\s"
],
"matchStringsStrategy": "recursive",
Expand Down Expand Up @@ -83,6 +83,69 @@
],
"depNameTemplate": "yarnpkg/berry",
"datasourceTemplate": "github-releases"
},
{
"description": "Update composer.json for PHP",
"fileMatch": "composer.mustache",
"matchStrings": [
"\"require(-dev)?\":\\s*{[^}]*}",
"\"(?<depName>.*?)\": \"(?<currentValue>.*?)\",?\\s"
],
"matchStringsStrategy": "recursive",
"datasourceTemplate": "packagist"
},
{
"description": "Update pubspec.yaml for Dart",
"fileMatch": "pubspec.mustache",
"matchStrings": [
"(dev_)?dependencies:\\s*{[^}]*}",
"\\s(?<depName>.*?):\\s*(?<currentValue>.*?)"
],
"matchStringsStrategy": "recursive",
"datasourceTemplate": "dart"
},
{
"description": "Update libs.versions.toml for Kotlin",
"fileMatch": "libs.versions.toml",
"matchStrings": [
"(?<depName>.*?):.*?(?<currentValue>\\d+\\.\\d+\\.\\d+)"
],
"datasourceTemplate": "maven"
},
{
"description": "Update .java-version",
"fileMatch": ".java-version",
"matchStrings": [
"(?<currentValue>.*?)"
],
"datasourceTemplate": "java-version",
"depNameTemplate": "java"
},
{
"description": "Update .dart-version",
"fileMatch": ".dart-version",
"matchStrings": [
"(?<currentValue>.*?)"
],
"datasourceTemplate": "dart-version",
"depNameTemplate": "dart"
},
{
"description": "Update .go-version",
"fileMatch": ".go-version",
"matchStrings": [
"(?<currentValue>.*?)"
],
"datasourceTemplate": "golang-version",
"depNameTemplate": "golang"
},
{
"description": "update Dockerfile",
"fileMatch": "^Dockerfile$",
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sARG .*?_VERSION=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
],
"ignorePaths": [
Expand All @@ -99,6 +162,10 @@
"clients/algoliasearch-client-php/composer.json",
"tests/output/**"
],
"includePaths": [
"tests/output/javascript/.yarn/**",
"tests/output/kotlin/gradle/**"
],
"prHourlyLimit": 20,
"prConcurrentLimit": 50
}

0 comments on commit af3e2c2

Please sign in to comment.