Files
fluffy-pancake/.github/workflows/clean.yml
T
dependabot[bot]andGitHub 214d37991d deps: bump dataaxiom/ghcr-cleanup-action from 1.0.16 to 1.2.0
Bumps [dataaxiom/ghcr-cleanup-action](https://github.com/dataaxiom/ghcr-cleanup-action) from 1.0.16 to 1.2.0.
- [Release notes](https://github.com/dataaxiom/ghcr-cleanup-action/releases)
- [Commits](https://github.com/dataaxiom/ghcr-cleanup-action/compare/cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4...374e2028c8fb93b7219f3771cd405fab95d3dec4)

---
updated-dependencies:
- dependency-name: dataaxiom/ghcr-cleanup-action
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 14:15:03 +00:00

28 lines
942 B
YAML

name: Cleanup Old Images
on:
schedule:
- cron: "0 0 * * 0" # Weekly on Sunday at midnight UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
jobs:
delete-older-than-90:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete Images Older Than 90 Days
uses: dataaxiom/ghcr-cleanup-action@374e2028c8fb93b7219f3771cd405fab95d3dec4 # v1.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
# IMPORTANT: Update this to match your image name from Containerfile (line 9)
# This should match the "# Name: your-repo-name" comment in your Containerfile
# Example: If your Containerfile has "# Name: my-custom-os", use "my-custom-os" here
packages: fluffy-pancake
older-than: 45 days
delete-orphaned-images: true
keep-n-tagged: 5
keep-n-untagged: 5