An open API service indexing awesome lists of open source software.

https://github.com/hostwithquantum/ghcr-janitor

ghcr-janitor deletes container images that have a `pr-` prefix.
https://github.com/hostwithquantum/ghcr-janitor

docker ghcr github github-container-registry

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# ghcr-janitor

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

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

## Usage

```shell
❯ 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")
```