malliaridis commented on code in PR #4273: URL: https://github.com/apache/solr/pull/4273#discussion_r3059550870
########## .github/renovate.json: ########## @@ -4,9 +4,19 @@ "enabled": true, "gitIgnoredAuthors": ["renovate-bot <[email protected]>"], "dependencyDashboard": false, - "enabledManagers": ["gradle", "github-actions"], + "enabledManagers": ["gradle", "github-actions", "regex"], "labels": ["exempt-stale"], - "includePaths": ["gradle/libs.versions.toml", "versions.*", "build.gradle", ".github/workflows/*"], + "includePaths": ["gradle/libs.versions.toml", "versions.*", "build.gradle", ".github/workflows/*", "solr/docker/templates/Dockerfile.body.template"], + "customManagers": [ + { + "description": "Track gosu GitHub releases and update ARG GOSU_VERSION in Dockerfile template", + "customType": "regex", + "fileMatch": ["^solr/docker/templates/Dockerfile\\.body\\.template$"], + "matchStrings": ["ARG GOSU_VERSION=(?<currentValue>[^\\s]+)"], + "depNameTemplate": "tianon/gosu", + "datasourceTemplate": "github-releases" Review Comment: According to our friend claude, this can be simplified by adding the below comment above the `ARG` in the dockerfile: ``` # renovate: datasource=github-releases depName=tianon/gosu ARG GOSU_VERSION=1.19 ``` Then you only have to include the below configuration to include the custom file in the scans: ```json { ... "dockerfile": { "fileMatch": ["(^|/)Dockerfile\\.body\\.template$"] } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
