https://badge.odee.net/ is a flexible badge image generator showing if your deployed app is latest or not.
Docker image availlable at https://hub.docker.com/r/bhuism/badge, just:
docker run -p 8080:8080 bhuism/badge
./run.sh
When the current deployed git commit_sha is known, you can generate this link in your app:
<img src="https://badge.odee.net/github/sha/{user}/{repo}/{branch}/{commit_sha}/badge.svg"></img>
Example:
When the commit_sha is not known (outside your app) the commit_sha can be retreived with the spring info actuator:
<img src="https://badge.odee.net/github/actuator/{user}/{repo}/{branch}/badge.svg?actuator_url={actuator_url}"></img>
(Don't forget to urlencode the actualtor_url request parameter)
Example:
GitLab Example:
<img src="https://badge.odee.net/gitlab/sha/{id}/{branch}/{commit_sha}/badge.svg"></img>
https://badge.odee.net/gitlab/sha/12289803/master/14021d07/badge.svg
ShieldsIo endpoint Example:
Shields endpoint api for showing if your app is latest or not.
https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.odee.net%2Fgithub%2Factuator%2Fbhuism%2Fbadge%2Fmaster%3Factuator_url%3Dhttps%3A%2F%2Fbadge.odee.net%2Factuator%2Finfo
You can also have ShieldsIo generate the image with this endpoint for https://shields.io/endpoint :
https://badge.odee.net/github/sha/{user}/{repo}/{branch}/{commit_sha}
Example:
https://badge.odee.net/github/sha/bhuism/badge/master/29d4e9731a09f535a230570a5be96c5c91e7a7ec
ShieldsIo Endpoint URL Example for actuator:
https://badge.odee.net/github/sha/{user}/{repo}/{branch}?actuator_url={actuator_url}
Example:
https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.odee.net%2Fgithub%2Factuator%2Fbhuism%2Fbadge%2Fmaster%3Factuator_url%3Dhttps%3A%2F%2Fbadge.odee.net%2Factuator%2Finfo