-
-
Notifications
You must be signed in to change notification settings - Fork 196
34 lines (29 loc) · 728 Bytes
/
ghcr-cleanup.yml
File metadata and controls
34 lines (29 loc) · 728 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
31
32
33
name: GitHub Container Registry Image Cleanup
on:
# Every Sunday at 01:30am
schedule:
- cron: '30 1 * * 0'
# Or manually
workflow_dispatch:
concurrency:
group: cleanup-images
cancel-in-progress: true
jobs:
common_images:
name: Cleanup common images
runs-on: ubuntu-latest
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
packages: baseimage-gui-build
delete-tags: common-*
older-than: 1 day
build_cache:
name: Cleanup build cache images
runs-on: ubuntu-latest
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
packages: baseimage-gui-build
delete-tags: cache-*
older-than: 6 months