Skip to content

Commit

Permalink
fix renovate (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger authored Dec 20, 2024
1 parent 09d20c3 commit 57b2d2c
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
automerge: true,
dependencyDashboard: false,
forkProcessing: "enabled",
enabledManagers: [
"dockerfile",
"github-actions",
"custom.regex",
"nuget",
"gomod",
"maven",
"pip_requirements",
],
rebaseWhen: "behind-base-branch",
packageRules: [
{
Expand Down Expand Up @@ -59,12 +50,27 @@
labels: ["automerge-security-update"],
},
osvVulnerabilityAlerts: true,
maven: {
fileMatch: ["examples/java/pom.xml"],
},
"maven-wrapper": {
fileMatch: ["examples/java/.mvn/wrapper/maven-wrapper.properties$"],
},
gomod: {
fileMatch: ["examples/go/go.mod"],
},
pip_requirements: {
fileMatch: ["examples/python/requirements.txt"],
},
nuget: {
fileMatch: ["examples/dotnet/rolldice.csproj"],
},
customManagers: [
{
customType: "regex",
depNameTemplate: "ghcr.io/renovatebot/renovate",
datasourceTemplate: "docker",
fileMatch: ["^\\.github/workflows/.*\\.ya?ml$"],
fileMatch: ["^\\.github/workflows/renovate.yml$"],
matchStrings: [
"renovate-version: (?<currentValue>[^@\\s]+)(?:@(?<currentDigest>\\S+))?",
"RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:(?<currentValue>[^@\\s]+)(?:@(?<currentDigest>\\S+))?",
Expand All @@ -73,15 +79,15 @@
{
customType: "regex",
description: "Update _VERSION variables in Dockerfiles",
fileMatch: ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
fileMatch: ["Dockerfile"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s",
],
},
{
customType: "regex",
description: "Update _version variables in run.sh",
fileMatch: ["(^|/)run.sh$"],
fileMatch: ["run.sh$"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?_version=(?<currentValue>.+?)\\s",
],
Expand Down

0 comments on commit 57b2d2c

Please sign in to comment.