Skip to content

ataklychev/gitlab-registry-cleaner

Repository files navigation

License

Gitlab container registry cleaner

Features

Periodic removes old images from GitLab container registry in all projects.

Install

  • Create access token in your gitlab service.
  • Run from source go run main.go clean
  • Run from docker image docker run -e BASE_API_URL=https://gitlab.com/api/v4 -e ACCESS_TOKEN=XXX ataklychev/gitlab-registry-cleaner

Environment variables

Run clean command in docker

Single operation, clean container registry and exit

docker run -e BASE_API_URL=https://gitlab.com/api/v4 -e ACCESS_TOKEN=XXX ataklychev/gitlab-registry-cleaner

Run cron command in docker

Run clean container registry operation every day at specified time

docker run -e BASE_API_URL=https://gitlab.com/api/v4 -e ACCESS_TOKEN=XXX ataklychev/gitlab-registry-cleaner cron

About

GitLab container registry cleaner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published