Skip to content

Clean up registry

Clean up registry #50

name: Clean up registry
on:
schedule:
- cron: '15 3 * * 0'
workflow_dispatch:
jobs:
prune-init-images:
name: Prune docker images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Prune untagged images
uses: vlaurin/action-ghcr-prune@0cf7d39f88546edd31965acba78cdcb0be14d641 #v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: Datadog
container: dd-trace-java-docker-build
keep-younger-than: 30 # days
prune-tags-regexes: |
^[a-z0-9]+_merge-
prune-untagged: true