Is it possible to get notifications only when new versions are available while using the latest tag?
Closed this issue ยท 3 comments
Hey! First of all thanks for this amazing piece of software!
Secondly, I want to explain my use case (if it makes sense at all).
I'm interested in knowing whenever a new version (be it a major, minor or patch) is available. I wanna know if that is possible while using the latest
tag together with the watch digest flag turned off. Like, can wud obtain the version from the latest
tag? Does it make sense to do so?
Like when will I get a notification if I set a container with the latest
tag but turn off the watch digest flag?
The motivation behind this is avoid setting a fixed semver tag to all of my images
Thanks!
Hi,
Thank you for your support ๐ .
The motivation behind this is avoid setting a fixed semver tag to all of my images
Unfortunately the primary goal of wud
is to stop using latest
tags ๐... in favour of semver
tags to ensure container immutability.
If I understand what you look for, you'd expect wud
to:
- Get the digest of the running container with tag
latest
(let's call it digest_current) - Find on the registry if this digest_current is also associated to another
semver
tag (let's call it semver_tag_current) - Get on the registry the digest associated to the
latest
tag (let's call it digest_registry) - Find on the registry if this digest_registry is also associated to another
semver
tag (let's call it semver_tag_registry) - Compare the 2 semver tags
- Trigger a notification indicating that semver_tag_registry is greater than semver_tag_current (or that digest_registry is newer than digest_current)
It seems very complicated to implement (I don't even know if it's possible using the Docker Registry API by the way ๐ค ).
I suspected I was doing something wrong! Thanks a lot!
You're welcome! ๐