forked from FuzzyGrim/Yamtrack
-
-
Notifications
You must be signed in to change notification settings - Fork 55
30 lines (27 loc) · 757 Bytes
/
Copy pathdry-image-cleanup.yml
File metadata and controls
30 lines (27 loc) · 757 Bytes
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
name: Dry Run Cleanup Docker Images
on:
workflow_dispatch:
jobs:
ghcr-cleanup-image:
name: ghcr cleanup action
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
package: floppy
dry-run: true
keep-n-untagged: 15
delete-ghost-images: true
delete-orphaned-images: true
validate: true
# Mirrors the pr-* purge in image-cleanup.yml. Run this first and read
# the log before running the real one.
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
packages: floppy,yamtrack
dry-run: true
delete-tags: pr-*
validate: true