Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to lookup image version for tags with latest #37

Open
rgstephens opened this issue Dec 15, 2021 · 2 comments
Open

Add option to lookup image version for tags with latest #37

rgstephens opened this issue Dec 15, 2021 · 2 comments

Comments

@rgstephens
Copy link
Contributor

For updates to images with latest tag, it would be nice to find the version number associate with this image.

If the findVersion option is specified, search recent images that have the same digest value and report the associated image tag. For example, if there's a digest value identical to latest with the tag 3.2.0, the message would report that 3.2.0 was updated instead of latest.

Along with this would be a versionMatch option. If this option is specified, then the update will only be reported if there's tag matches that pattern. In the example below, a tag off 3.2.0-beta would not match and as a result the notification would not be sent.

    "notifyServices": [
        {
            "image": "rasa/rasa:latest",
            "findVersion": true,
            "versionMatch": "^\\d{1,2}\\.\\d{1,2}\\.\\d{1,3}$",
             ...
@rgstephens
Copy link
Contributor Author

rgstephens commented Dec 15, 2021

A docker image build with this feature can be pulled at stephens/docker-notify:1.4.1

@tonycody
Copy link

Let's merge them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants