Skip to content

ghcr-janitor deletes container images that have a `pr-` prefix.

License

Notifications You must be signed in to change notification settings

hostwithquantum/ghcr-janitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghcr-janitor

Clean-up pr- images in your org's Github Container Registry.

❯ GITHUB_TOKEN=123 ghcr-janitor --org hostwithquantum --package hugo-docker
hugo-docker:
Deleting: "pr-6"

Usage

❯ ghcr-janitor --help
Usage of ghcr-janitor:
  -org string
    	the organization
  -package string
    	the package to clean
  -state string
    	must be 'active' or 'deleted' (default "active")
  -visibility string
    	clean 'public' or 'private' images (default "public")