-
Notifications
You must be signed in to change notification settings - Fork 55
54 lines (52 loc) · 1.86 KB
/
ghcrCleanup.yml
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
49
50
51
52
53
54
name: Delete old container images
on:
schedule:
- cron: "0 0 * * *"
jobs:
clean_ghcr:
name: Delete untagged container images
runs-on: ubuntu-latest
steps:
# backend, cypress, database, frontend, frontend-lighthouse, nginx
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/backend'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/cypress'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/database'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/db'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/frontend'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/frontend-lighthouse'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/nginx'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'