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.
- Host: GitHub
- URL: https://github.com/hostwithquantum/ghcr-janitor
- Owner: hostwithquantum
- License: apache-2.0
- Created: 2024-02-21T23:54:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-10T04:55:28.000Z (over 1 year ago)
- Last Synced: 2025-01-11T00:08:17.265Z (9 months ago)
- Topics: docker, ghcr, github, github-container-registry
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
```