Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: (?<depName>[^\\s:]+):(?<currentValue>[^\\s@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?',
],
datasourceTemplate: 'docker',
// matches: 17.6-202509151215-minimal-trixie
versioningTemplate: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)-(?<patch>\\d+)-(?<compatibility>\\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).
Expand Down