Skip to content
Merged
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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-gcc
- rhel-9.4
- rhel-9.6
- tools-rippled-clang-format
- 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 }}
Loading