eggplants / ghcr-badge

Generate ghcr.io (GitHub Container Registory) container's status badge
https://ghcr-badge.egpl.dev
MIT License
36 stars 10 forks source link

Support for GitHub releases pre-release tags #7

Closed ptr727 closed 2 years ago

ptr727 commented 2 years ago

See: https://github.com/ptr727/PlexCleaner/issues/100 And: https://github.com/badges/shields/issues/7913

Desire to have a deterministic badge for latest pre-release GitHub release. Standard shields.io badge works as long as pre-release build is later than release build. As soon as release build version is later than pre-release version the pre-release tag badge becomes a release badge.

Desire to have a badge for latest release, and latest pre-release, even if release version is later than pre-release version.

eggplants commented 2 years ago

Pre-release or not cannot be determined from DockerAPI information alone, and such tagging is not in the specification, so it will not be supported for the time being...

Sorry, and thank you!

ptr727 commented 2 years ago

Pre-release or not cannot be determined from DockerAPI information alone

This request is for GitHub releases, not Docker?

eggplants commented 2 years ago

Ah, this was not originally about Ghcr, but about GitHub pre-releases. I didn't read the original Issue carefully.