Clean up registry #142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 stale PR test image tags | |
| 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- | |
| # IMPORTANT: do NOT enable prune-untagged. With multi-arch manifest | |
| # lists, each per-arch child manifest appears "untagged" in GHCR even | |
| # though it is referenced by a tagged manifest list. Pruning untagged | |
| # images would dereference the manifest lists and break pulls. | |
| prune-untagged: false |