{"id":22435521,"url":"https://github.com/timeraa/do-registry-cleanup","last_synced_at":"2025-08-01T14:31:50.615Z","repository":{"id":237425014,"uuid":"772457352","full_name":"Timeraa/do-registry-cleanup","owner":"Timeraa","description":"Cleans up DigitalOcean Registry Repository tags based on creation / tag match","archived":false,"fork":false,"pushed_at":"2024-12-01T16:44:54.000Z","size":481,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T17:37:44.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Timeraa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Timeraa","patreon":"Timeraa"}},"created_at":"2024-03-15T08:26:13.000Z","updated_at":"2024-09-01T12:55:31.000Z","dependencies_parsed_at":"2024-05-01T17:26:01.192Z","dependency_job_id":"ed0fd80f-0689-4c9f-be6d-fbc65ffb24b3","html_url":"https://github.com/Timeraa/do-registry-cleanup","commit_stats":null,"previous_names":["timeraa/do-registry-cleanup"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timeraa%2Fdo-registry-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timeraa%2Fdo-registry-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timeraa%2Fdo-registry-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timeraa%2Fdo-registry-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Timeraa","download_url":"https://codeload.github.com/Timeraa/do-registry-cleanup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228383636,"owners_count":17911331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T23:14:15.800Z","updated_at":"2024-12-05T23:14:16.500Z","avatar_url":"https://github.com/Timeraa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Timeraa","https://patreon.com/Timeraa"],"categories":[],"sub_categories":[],"readme":"# DigitalOcean Registry Cleanup\n\n[![npm version](https://img.shields.io/npm/v/@timeraa/do-registry-cleanup.svg)](https://www.npmjs.com/package/@timeraa/do-registry-cleanup)\n[![License](https://img.shields.io/github/license/timeraa/do-registry-cleanup.svg)](https://github.com/timeraa/do-registry-cleanup/blob/main/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/timeraa/do-registry-cleanup/ci.yml?branch=main)](https://github.com/timeraa/do-registry-cleanup/actions/workflows/ci.yml)\n\n\u003e [!IMPORTANT]\n\u003e Every tag deletion is a separate API call to DigitalOcean. This can hit your DigitalOcean account rate limit really fast if you have a lot of tags.\n\nThis GitHub Action and CLI tool helps you clean up old Docker tags from your DigitalOcean container registry. It allows you to keep a specified number of recent versions, unique semver versions, and tags within a certain retention period.\n\n## Features\n\n- Delete old Docker tags from DigitalOcean container registry\n- Keep a specified number of recent versions\n- Keep a specified number of unique semver versions\n- Retain tags within a specified number of days\n- Include or exclude repositories using glob patterns\n- Perform a dry run without actually deleting tags\n- Concurrent processing of repositories and tags for improved performance\n\n## Usage\n\n### GitHub Action\n\nTo use this action in your workflow, add the following step:\n```yaml\n- name: Setup DigitalOcean CLI\n  uses: digitalocean/action-doctl@v2\n  with:\n    token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n\n- name: DigitalOcean Registry Cleanup\n  uses: timeraa/do-registry-cleanup@v1\n  with:\n    # Required\n    registry-name: ${{ secrets.DIGITALOCEAN_REGISTRY_NAME }}\n    # Optional\n    keep-versions: 3\n    keep-semver: 2\n    retention-days: 30\n    dry-run: true\n    include-repos: 'repo1, repo2'\n    exclude-repos: 'repo3, repo4'\n    repo-concurrency: 3\n    tag-concurrency: 3\n```\n\n### CLI\n\nUse the cli using the following command:\n```bash\nnpx @timeraa/do-registry-cleanup -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeraa%2Fdo-registry-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimeraa%2Fdo-registry-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeraa%2Fdo-registry-cleanup/lists"}