fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
921 stars 29 forks source link

[Question] How to use minor version but monitor for patch #395

Open RichyHBM opened 1 month ago

RichyHBM commented 1 month ago

Hello, I am looking to answer a question regarding docker image versions.

I want to use minor versions for my docker images where available, i.e. 1.23, but have WUD notify me when a new patch version is available. This works ok using patch compatible regex, however if I update that container to the latest patch, WUD still lists it as an available update, even though they are at the latest.

Is there any setting that can achieve the desired outcome? Would I need to watch digests as I currently disable this where possible to minimize on dockerhub API calls

fmartinou commented 4 weeks ago

Hello,

I'm not sure to exactly understand your situation; can you provide a small example of your configuration, please?

If I take the example of nginx, they provide the same image as 1, 1.27 and 1.27.0.

I basically would say:

But maybe I have misunderstood your issue...

rheicide commented 2 days ago

@fmartinou I think I get what @RichyHBM meant, as apparently I'm in a similar situation (use major and watch for minor updates). Let me explain:

If WUD would compare digests with wud.watch.digest=true even when tags are different (16 vs. 16.3 in this example) to decide whether there's an update, it would be perfect.

I'm aware that I can set wud.tag.include=^16$$ and wud.watch.digest=true to get "correct" notifications, but that way WUD won't be able to show what minor version the update is—is it 16.3 or 16.4?

I think this is kinda finicky and it's totally fine if you decide to keep the current behavior. Just wanted to chime in and try to make it clear. Thanks for this useful piece of software!