Skip to content

Add renovate configuration

Sheogorath requested to merge feature/automated-upgrades into main

This patch enables renovate to automatically upgrade the pihole service file when new versions become available.

The motivation is to automate the steps to keep the image up-to-date as much as possible. This is a first step. If a proper integration test can be performed (e.g. a machine is bootet with the service file and runs a working container), one can even consider to fully automate the merge request flow.

The implementaiton uses renovate's regex-manager that allows to define regexes, that result in version lookups. This specific implementation allows 3 ways of defining image version instructions:

Environment="PIHOLE_CONTAINER_VERSION=v5.8.1"
Environment="PIHOLE_CONTAINER_IMAGE=pihole/pihole"
Environment="PIHOLE_CONTAINER_IMAGE=pihole/pihole"
Environment="PIHOLE_CONTAINER_VERSION=v5.8.1"
# renovate: depName=pihole/pihole
Environment="PIHOLE_CONTAINER_VERSION=v5.8.1"

This should take care of most cases and hopefully can be further generalised towards RPM-OSTree Engine.

Merge request reports