Skip to main content

A command-line tool for managing Docker registry cleanup operations in Astronomer environments

Project description

Astronomer Registry Cleanup

Minimal CLI to delete old Docker image tags in Astronomer registries.

Install

pip install astronomer-registry-cleanup

Usage

astronomer-registry-cleanup -r <registry> -p <token> <release_name> -f <prefix> (--keep-n-tags N | --drop-older-tags YYYY-MM-DD) [--dry-run]

Behavior

  • Auth: -p is your systemadmin token (username is not required).
  • Tags considered: <prefix>-<number> only.
  • Safety: never deletes if ≤ 1 tag exists for the prefix.
  • Dry-run prints one line per planned deletion: <release_name>:<tag> <digest>.

Examples

# Keep the latest 3 tags for prefix "deploy-" (dry-run)
astronomer-registry-cleanup -r registry.example.com -p <token> my-release -f deploy- --keep-n-tags 3 --dry-run

# Delete everything older than a date for prefix "cli-" (dry-run)
astronomer-registry-cleanup -r registry.example.com -p <token> my-release -f cli- --drop-older-tags 2025-08-01 --dry-run

Notes

  • Works against Docker Registry v2 auth flow via Houston.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astronomer_registry_cleanup-0.1.2.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astronomer_registry_cleanup-0.1.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file astronomer_registry_cleanup-0.1.2.tar.gz.

File metadata

File hashes

Hashes for astronomer_registry_cleanup-0.1.2.tar.gz
Algorithm Hash digest
SHA256 63fd49aa7d5e1accb2f87bf0520acd66f520c6d9dfda88e52659104f0524a131
MD5 d378fce972757a98e642c282b7ec765e
BLAKE2b-256 3cc377bc5ce0acc52aa2b98481a1aa93d14cea56c4886fe148d6ba7a5bb8174c

See more details on using hashes here.

File details

Details for the file astronomer_registry_cleanup-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for astronomer_registry_cleanup-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e01999ba57f0db9faa1da77612759b7dd8e8d2df796a7f5bff2796f34b0ea9e4
MD5 6dc5b0e2fe420d3b54ad14f0d420304f
BLAKE2b-256 6cb78f5b44badc26214d3ad554d1a8b9366a75857f385f356a660a020d68d8aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page