Generate ghcr.io container's status badge
Project description
ghcr-badge: Generate ghcr.io container's status badge
Motivation
https://github.com/badges/shields/issues/5594
Deployment
Available paths
/<string:package_owner>/<string:package_name>/tags?color=...&ignore=...&n=...&label=...&trim=...
- defaults:
color=#e05d44
,ignore=latest
,n=3
,label=image tags
- https://ghcr-badge.herokuapp.com/eggplants/ghcr-badge/tags?trim=major
- 👉:
- defaults:
/<string:package_owner>/<string:package_name>/latest_tag?color=...&ignore=...&label=...&trim=...
- defaults:
color=#e05d44
,ignore=latest
,label=version
- https://ghcr-badge.herokuapp.com/eggplants/ghcr-badge/latest_tag?trim=major
- 👉:
- defaults:
/<string:package_owner>/<string:package_name>/develop_tag?color=...&label=...
- defaults:
color=#e05d44
,label=develop
- https://ghcr-badge.herokuapp.com/ptr727/plexcleaner/develop_tag
- 👉:
- defaults:
/<string:package_owner>/<string:package_name>/size?color=...&tag=...&label=...&trim=...
- defaults:
color=#e05d44
,tag=latest
,label=image size
- https://ghcr-badge.herokuapp.com/eggplants/ghcr-badge/size
- 👉:
- defaults:
Common parameters
label
parameter
label=🤔
:
ignore
parameter
Use the ignore parameter to filter returned tags, supports pattern matching and a comma separated list.
ignore=latest
ignores thelatest
tag (default).ignore=sha256*
ignores all tags prefixed withsha256
.ignore=v0.0.1,latest,sha256*
ignores thelatest
andv0.0.1
tags, and all tags prefixed withsha256*
.
trim
parameter
trim=patch
trims^v?\d+\.\d+\.\d+[^.]*$
tags.trim=major
trims^v?\d+\.\d+[^.]*$
tags.
color
parameter
Available color names and hex codes are listed on here.
Note
GitHub caches badge data in 604800 seconds(=7 days). To update, try: curl -X PURGE "https://camo.githubusercontent.com/..."
(it's badge image link)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ghcr_badge-0.0.4.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for ghcr_badge-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f03158f4787de83012c971d1789a6e645d7838af9e4768286c575d70811c9c5 |
|
MD5 | fe85979bc442c1742008ff8b71d445bd |
|
BLAKE2b-256 | 56f29e938cae2572730e9c08912cc5feb6679f1ce4e053bfff9784856e556df5 |