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
-
- Deta Space will be closed at 2024-10-17
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:
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
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/..."
Development
- Install
poetry
- Run
poetry install && poetry shell && pre-commit install
- Launch live server with
task dev
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.5.0.tar.gz
(57.4 kB
view details)
Built Distribution
File details
Details for the file ghcr_badge-0.5.0.tar.gz
.
File metadata
- Download URL: ghcr_badge-0.5.0.tar.gz
- Upload date:
- Size: 57.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5d97c6d8121f9f08350a056189395972dcc27a1d72ce2f50fed43b165894a9 |
|
MD5 | 29c88f23305020c9d251017e3eaa6406 |
|
BLAKE2b-256 | 971679cc716429a29e887d17aa7ab5f826fac08563ede3b0b203f9960e3b86fb |
File details
Details for the file ghcr_badge-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: ghcr_badge-0.5.0-py3-none-any.whl
- Upload date:
- Size: 56.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bfe9e85ac910617ae5d695e6f7e69a7690760e2c172537b7f1117f2c4b19228 |
|
MD5 | 64bfc96d61f3777cce934213020d7d93 |
|
BLAKE2b-256 | af6ea68ba6cbf760dccb43338db45c0a7e68868108e3d0cf8c007fe0336920e8 |