ghcr-badge: Generate ghcr.io container's status badge
Motivation
https://github.com/badges/shields/issues/5594
Deployment
-
- Deta Space was closed
Available paths
/<package_owner>/<package_name>/tags?color=...&ignore=...&n=...&label=...&trim=...- defaults:
color=#44cc11,ignore=latest,n=3,label=image tags - https://ghcr-badge.egpl.dev/eggplants/ghcr-badge/tags?trim=major
- 👉:
- defaults:
/<package_owner>/<package_name>/latest_tag?color=...&ignore=...&label=...&trim=...- defaults:
color=#44cc11,ignore=latest,label=version - https://ghcr-badge.egpl.dev/eggplants/ghcr-badge/latest_tag?trim=major&label=latest
- 👉:
- defaults:
/<package_owner>/<package_name>/size?color=...&tag=...&label=...&trim=...- defaults:
color=#44cc11,tag=latest,label=image size - https://ghcr-badge.egpl.dev/eggplants/ghcr-badge/size
- 👉:
- defaults:
<package_name> may itself contain / to reference a repository-scoped image, e.g. ghcr.io/henrygd/beszel/beszel:
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=latestignores thelatesttag (default).ignore=sha256*ignores all tags prefixed withsha256.ignore=v0.0.1,latest,sha256*ignores thelatestandv0.0.1tags, and all tags prefixed withsha256*.
trim parameter
trim=patchtrims^v?\d+\.\d+\.\d+[^.]*$tags.trim=majortrims^v?\d+\.\d+[^.]*$tags.
color parameter
Available color names and hex codes are listed on: https://github.com/jongracecox/anybadge#colors
Note
Generated badge will be cached for 3666 seconds in GitHub's Camo server. To update immediately, send PURGE request to the badge Camo link.
curl -X PURGE "https://camo.githubusercontent.com/..."
Metadata
Release files for ghcr-badge 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ghcr_badge-2.0.0.tar.gz | 59.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ghcr_badge-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 118.2 kB
Release files / ghcr_badge-2.0.0.tar.gz
| Download URL | ghcr_badge-2.0.0.tar.gz |
|---|---|
| Size | 59.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b09d01ba67b8ef4695228818e8862e2f6a37fa6a947edd45dbf82b5ee491c5a
|
|
BLAKE2b-256 checksum How to use checksums |
4ed878988a04dc3b7bc53d998b202ed213e4bb2d0774ca399788e91bf3842600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ghcr_badge-2.0.0-py3-none-any.whl
| Download URL | ghcr_badge-2.0.0-py3-none-any.whl |
|---|---|
| Size | 58.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc26d13613c4057735123a633d8cf446a5fb21ad3c36f2dcfd7a1e722c89fba9
|
|
BLAKE2b-256 checksum How to use checksums |
faa3d3877266596514d38d8aa6b8e3a5cb637894acb0cbd70219bc04dd772cc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|