Skip to content

Commit 66c2867

Browse files
committed
feat: Add cleanup registry workflow
1 parent 8821ea9 commit 66c2867

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Clean up registry
2+
on:
3+
schedule:
4+
- cron: '15 3 * * 0'
5+
workflow_dispatch:
6+
7+
jobs:
8+
prune-init-images:
9+
name: Prune docker images
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
steps:
15+
- name: Prune untagged images
16+
uses: vlaurin/action-ghcr-prune@0a539594d122b915e71c59733a5b115bfaaf5d52 #v0.5.0
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
organization: Datadog
20+
container: dd-trace-java-docker-build
21+
keep-younger-than: 30 # days
22+
prune-tags-regexes: |
23+
^[a-z0-9]+_merge-
24+
prune-untagged: true

0 commit comments

Comments
 (0)