Skip to content

DOCR cleanup

Actions
Remove images from DOCR
v1.0.0
Latest
Star (0)

cleanup-docr

GitHub Action to clean up DigitalOcean Container Registry (DOCR) by removing old image manifests.

Usage

- uses: untile/cleanup-docr@v1
  with:
    image_repository: 'my-repository'
    buffer_size: 3
    exclude: \[.*(latest|v[^,\]]*).*\]

Inputs

  • image_repository (required) - Image repository name in the DOCR
  • buffer_size (optional) - Number of last uploaded images to keep (default: 3)
  • exclude (optional) - Tag regex to exclude from deletion (example: \[.*(latest|v[^,\]]*).*\])

Prerequisites

  • doctl must be authenticated in your workflow (use digitalocean/action-doctl)

DOCR cleanup is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Remove images from DOCR
v1.0.0
Latest

DOCR cleanup is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.