1
0
Fork 0
mirror of https://github.com/Luzifer/gcr-clean.git synced 2024-12-22 11:21:19 +00:00
Helper to clean unused manifests from the GCR inside a Google Cloud Project
Find a file
Knut Ahlers 84dacbdf06
Update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-02-05 11:39:48 +01:00
vendor Update dependencies 2019-02-05 11:39:48 +01:00
.gitignore Initial version 2019-02-04 15:31:36 +01:00
.repo-runner.yaml Add META 2019-02-04 16:04:34 +01:00
auth.go Initial version 2019-02-04 15:31:36 +01:00
gcr.go Initial version 2019-02-04 15:31:36 +01:00
go.mod Update dependencies 2019-02-05 11:39:48 +01:00
go.sum Update dependencies 2019-02-05 11:39:48 +01:00
History.md prepare release v0.1.0 2019-02-04 16:12:49 +01:00
LICENSE Add META 2019-02-04 16:04:34 +01:00
main.go Use explicit version (Go 1.11+) 2019-02-05 11:29:51 +01:00
Makefile Add META 2019-02-04 16:04:34 +01:00
README.md Add README 2019-02-04 16:11:32 +01:00

Go Report Card

Luzifer / gcr-clean

gcr-clean is a small helper to clean unused manifests from the GCR inside a Google Cloud Project. It takes all manifests not anymore tagged and deletes them.

It supports reading authentication information from Google Application Default Credentials (account.json) or the Docker configuration.

Usage

$ gcr-clean --help
Usage of gcr-clean:
      --account string     Path to account.json file with GCR access
      --listen string      Port/IP to listen on (default ":3000")
      --log-level string   Log level (debug, info, warn, error, fatal) (default "info")
  -n, --noop               Do not execute destructive DELETE operation (default true)
  -p, --parallel int       How many deletions to execute in parallel (default 10)
      --registry string    The registry used (gcr.io, eu.gcr.io, us.gcr.io, ...) (default "gcr.io")
      --version            Prints current version and exits

$ gcr-clean luzifer-registry
INFO[0000] Fetching repositories...
INFO[0001] Manifest deleted          manifest="sha256:a411[...]" noop=true repo=luzifer-registry/eventsys