-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 796 Bytes
/
clean.yml
File metadata and controls
25 lines (24 loc) · 796 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
name: Cleanup Old Images
on:
schedule:
- cron: "15 1 * * 4" # Runs at 01:15, only on Thursday.
workflow_dispatch:
jobs:
delete-older-than-30:
runs-on: ubuntu-24.04-arm
permissions:
packages: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit
- name: Delete Images Older Than 30 Days
uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
packages: fedora-createrepo-image
older-than: 30 days
delete-orphaned-images: true
keep-n-tagged: 7
keep-n-untagged: 7