GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eggplants/ghcr-badge: Generate ghcr.io (GitHub Container Registry) container's status badge

BranchesTags
Open more actions menu

Latest commit

 

History

528 Commits
528 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
cloudflare
cloudflare
 
 
ghcr_badge
ghcr_badge
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
cspell.json
cspell.json
 
 
mise.toml
mise.toml
 
 
pyproject.toml
pyproject.toml
 
 
render.yaml
render.yaml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

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

1 2 3

PyPI version CI

Motivation

badges/shields#5594

Deployment

Deploy to Render

  • https://ghcr-badge.egpl.dev/

    • Website
  • https://ghcr-badge.deta.dev/

    • Deta Space was closed

To run your own on Cloudflare Containers, see cloudflare/README.md.

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
    • 👉: 1
  • /<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
    • 👉: 2
  • /<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
    • 👉: 3

<package_name> may itself contain / to reference a repository-scoped image, e.g. ghcr.io/henrygd/beszel/beszel:

  • https://ghcr-badge.egpl.dev/henrygd/beszel/beszel/tags

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: 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/..."

About

Generate ghcr.io (GitHub Container Registry) container's status badge

ghcr-badge.egpl.dev

Topics

badgebadge-makerghcrgithubmetadatastatussvg

Resources

Readme
MIT license
Activity

Stars

50 stars

Watchers

1 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.