Comments (2)
Thanks for the response and the API link.
I've checked the API v2 documentation and indeed the response is ordered lexically:
listing-image-tags
There is no documented way to specify the sort order.
They only support limiting the result tag list (pagination).
I agree, analyzing all tag would be very bad idea.
We should call for all tags until they publish rational API endpoint.
I really appreciate of your work @crazy-max, superior work!
Have a nice day!
from diun.
Hi @vl-bwalocha,
The results from (i.e. Static) provider are alphabetically sorted.
Actually tags are sorted as they arrive through the registry API. The underlying endpoint for Docker Hub to fetch tags for a repository is https://index.docker.io/v2/crazymax/cloudflared/tags/list
. With this example the result is:
{
"name": "crazymax/cloudflared",
"tags": [
"2019.10.1",
"2019.10.2",
"2019.10.4",
"2019.11.0",
"2019.11.2",
"2019.11.3",
"2019.12.0",
"2019.9.0",
"2019.9.1",
"2019.9.2",
"2020.2.0",
"latest"
]
}
Then the order is reversed in Diun to have latest tags first but as you stipulated, the order is alphabetical through this endpoint.
What we can do here is analyze each tag to get his created date but it could be a cumbersome operation. Keep you in touch if I find something better.
In the meantime, grab all the tags ๐
from diun.
Related Issues (20)
- Newer semver image tags notification for `file` provider
- Cannot send notification with Signal-REST to Signal group chat
- Diun not found any image. HOT 2
- Nomad provider errors out with "invalid memory address or nil pointer dereference" HOT 2
- Google Artifact Registry Service Account key.json as PASSWORDFILE
- Diun doesn't send notifications about new images found HOT 2
- Check images behind docker proxy
- Make "info" logs less verbose
- Feature request: Support for generic push healthchecks
- [Feature request] Support Pushover message priority HOT 1
- Only receiving notification after image has already been updated HOT 1
- Timezone discrepancy between container and host HOT 21
- SECRETS file error when utilized in NOTIF mail TO option via 'diun.yml' HOT 2
- How can I configure to ignore updates to certain images๏ผ
- It's possible remove color from logs?
- ERR Ntfy notification failed error="0 unauthorized: "
- Static webpage
- MQTT Enhancements for Home Assistant
- Support multiple notifications
- Can't send mail notification through gmail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diun.