I use Renovate to keep my dependencies up-to-date. However there are some dependencies that I want to exclude from automatic updates, i.e. I don't want Renovate to update them, ever.
One such dependency is Postgres, which is specified in docker-compose.yml like so:
services:
db:
image: postgres:11
Currently, Renovate is creating PRs that would change the 11 to 15. Is there a configuration option in Renovate that allows me to exclude this dependency from Renovate?
You want to use a package-rules.
This rule will disable updates for all dependencies found in docker compose files which have postgres in their name.
{
"packageRules": [
{
"matchPackageNames": ["/postgres/"],
"matchManagers": ["docker-compose"],
"enabled": false
}
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With