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.deta.dev/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.deta.dev/eggplants/ghcr-badge/latest_tag?trim=major&label=latest
- 👉:
- defaults:
/<string:package_owner>/<string:package_name>/develop_tag?color=...&label=...
- defaults:
color=#e05d44
,label=develop
- https://ghcr-badge.deta.dev/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.deta.dev/eggplants/ghcr-badge/size
- 👉:
- defaults:
Common parameters
label
parameter
label=hello
:
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.1.1.tar.gz
(9.6 kB
view hashes)
Built Distribution
ghcr_badge-0.1.1-py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for ghcr_badge-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94c37ab61ed89a103601cce9698a768366409d370ff9ee70db0964e08f48728 |
|
MD5 | 24b48ea86ad10ea3cf2ddd74cd09c7ba |
|
BLAKE2b-256 | b3db78b08df38d0e42a4a38136a20e1ced80e782cdcb7599109744f46e52d929 |