Skip to content

Commit 167b38f

Browse files
committed
Add cleanup pipeline to remove unusable images
1 parent 5dd7158 commit 167b38f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/cleanup.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docker image cleanup
2+
3+
on:
4+
schedule:
5+
- cron: "42 2 * * 0" # Run every Sunday at 02:42 UTC.
6+
workflow_dispatch:
7+
push:
8+
9+
jobs:
10+
cleanup:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
packages: write
14+
steps:
15+
- name: Cleanup images in the GitHub Container Registry
16+
uses: dataaxiom/ghcr-cleanup-action@v1
17+
with:
18+
delete-ghost-images: true
19+
delete-orphaned-images: true
20+
delete-partial-images: true
21+
delete-untagged: true
22+
dry-run: true

0 commit comments

Comments
 (0)