forked from DataDog/dd-trace-java
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (46 loc) · 1.31 KB
/
lib-injection-prune-registry.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Prune Lib Injection images
on:
schedule:
- cron: '15 3 * * *'
workflow_dispatch:
jobs:
prune-init-images:
name: Prune dd-lib-java-init docker images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Prune registry
uses: vlaurin/action-ghcr-prune@0a539594d122b915e71c59733a5b115bfaaf5d52 #v0.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: Datadog
container: dd-trace-java/dd-lib-java-init
keep-younger-than: 7 # days
keep-last: 10
keep-tags: |
latest_snapshot
prune-tags-regexes: |
^[a-z0-9]{40}$
prune-untagged: true
prune-init-test-app-images:
name: Prune dd-lib-java-init-test-app docker images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Prune registry
uses: vlaurin/action-ghcr-prune@0a539594d122b915e71c59733a5b115bfaaf5d52 #v0.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: Datadog
container: dd-trace-java/dd-lib-java-init-test-app
keep-younger-than: 15 # days
keep-last: 5
keep-tags: |
latest_snapshot
prune-tags-regexes: |
^[a-z0-9]{40}$
prune-untagged: true