Skip to main content

Generate ghcr.io container's status badge

Project description

ghcr-badge: Generate ghcr.io container's status badge

1 2 3

PyPI version pre-commit.ci status Maintainability Release Package

Motivation

https://github.com/badges/shields/issues/5594

Deployment

Deploy to Render

Available paths

Common parameters

label parameter

  • label=hello: label=hello

ignore parameter

Use the ignore parameter to filter returned tags, supports pattern matching and a comma separated list.

  • ignore=latest ignores the latest tag (default).
  • ignore=sha256* ignores all tags prefixed with sha256.
  • ignore=v0.0.1,latest,sha256* ignores the latest and v0.0.1 tags, and all tags prefixed with sha256*.

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

  1. Install poetry
  2. Run poetry install && poetry shell && pre-commit install
  3. Launch live server with task dev

Project details


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)

Uploaded Source

Built Distribution

ghcr_badge-0.5.0-py3-none-any.whl (56.4 kB view details)

Uploaded Python 3

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

Hashes for ghcr_badge-0.5.0.tar.gz
Algorithm Hash digest
SHA256 aa5d97c6d8121f9f08350a056189395972dcc27a1d72ce2f50fed43b165894a9
MD5 29c88f23305020c9d251017e3eaa6406
BLAKE2b-256 971679cc716429a29e887d17aa7ab5f826fac08563ede3b0b203f9960e3b86fb

See more details on using hashes here.

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

Hashes for ghcr_badge-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bfe9e85ac910617ae5d695e6f7e69a7690760e2c172537b7f1117f2c4b19228
MD5 64bfc96d61f3777cce934213020d7d93
BLAKE2b-256 af6ea68ba6cbf760dccb43338db45c0a7e68868108e3d0cf8c007fe0336920e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page