-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (44 loc) · 1.14 KB
/
cleanup.yml
File metadata and controls
46 lines (44 loc) · 1.14 KB
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
name: Docker image cleanup
on:
pull_request:
paths:
- .github/workflows/cleanup.yml
push:
branches:
- main
paths:
- .github/workflows/cleanup.yml
schedule:
- cron: "42 2 * * 0" # Run every Sunday at 02:42 UTC.
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
fail-fast: false
matrix:
image:
- debian-bullseye
- debian-bookworm
- debian-trixie
- gcc
- rhel-8
- rhel-9
- rhel-10
- tools-rippled-documentation
- tools-rippled-pre-commit
- tools-rippled-prettier
- ubuntu-jammy
- ubuntu-noble
steps:
- name: Cleanup images in the GitHub Container Registry
uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
with:
delete-ghost-images: true
delete-orphaned-images: true
delete-partial-images: true
delete-untagged: true
dry-run: ${{ github.event_name == 'pull_request' }}
package: ci/${{ matrix.image }}