Skip to content
/ badge Public

Deploy status Badge service using GraalVM and spring-fu

License

Notifications You must be signed in to change notification settings

bhuism/badge

Repository files navigation

Deploy status Badge Service

Version badge versionspringboot versionspring-graalvm-native Api Status Open Issues License Maintainability Test Coverage Known Vulnerabilities Quality Gate Status Bugs Code Smells Vulnerabilities

Description

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

Build & Run

./run.sh

Usage

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:

https://badge.odee.net/github/sha/bhuism/badge/master/29d4e9731a09f535a230570a5be96c5c91e7a7ec/badge.svg

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:

https://badge.odee.net/github/actuator/bhuism/badge/master/badge.svg?actuator_url=https%3A%2F%2Fbadge.odee.net%2Factuator%2Finfo

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