diff --git a/README.md b/README.md index 0f3b4c14..f7ca68f0 100644 --- a/README.md +++ b/README.md @@ -243,6 +243,34 @@ cosign verify IMAGE \ For detailed instructions on building PostgreSQL container images, refer to the [BUILD.md](BUILD.md) file. +## Automatic Updating using Renovate + +[Renovate](https://github.com/renovatebot/renovate) can be used to automatically update various dependencies. +As CloudNativePG's `Cluster` CRDs are not automatically picked up by renovate a custom regex manager must be configured: + +```json5 +{ + customManagers: [ + { + // cloudnative-pg instance version + customType: 'regex', + managerFilePatterns: [ + '/\\.yaml$/', + ], + matchStrings: [ + 'imageName: (?[^\\s:]+):(?[^\\s@]+)(?:@(?sha256:[a-f0-9]+))?', + ], + datasourceTemplate: 'docker', + // matches: 17.6-202509151215-minimal-trixie + versioningTemplate: 'regex:^(?\\d+)\\.(?\\d+)-(?\\d+)-(?\\S+)$', + autoReplaceStringTemplate: '{{{newValue}}}{{#if newDigest}}@{{{newDigest}}}{{/if}}', + } + ] +} +``` + +Renovate will never change the `compatibility` part of the tag, ensuring that the upgraded images will remain compatible. + ## License and copyright This software is available under [Apache License 2.0](LICENSE).