etna icon indicating copy to clipboard operation
etna copied to clipboard

CICD: untaged docker image cleaner

Open martins0n opened this issue 2 years ago • 0 comments

🚀 Feature Request

We should delete untaged docker images because they use extra space.

Proposal

  • [ ] Github workflow script on cron.
    • Github docker registry api reference. You can use GITHUB_TOKEN to call api
    • Example: curl -H "Authorization: token $github_token" -X GET "https://api.github.com/orgs/tinkoff-ai/packages?package_type=container"
  • [ ] Leave last 20 untaged images and remove other.
  • [ ] Check if taged images are not at risk

Test cases

No response

Additional context

No response

martins0n avatar Jun 23 '22 07:06 martins0n