cleanup.yml 688 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. name: Cleanup
  3. # yamllint disable-line rule:truthy
  4. on:
  5. workflow_dispatch:
  6. schedule:
  7. - cron: "4 4 * * 0"
  8. concurrency:
  9. group: ${{ github.workflow }}
  10. cancel-in-progress: false
  11. permissions:
  12. contents: read
  13. jobs:
  14. container-cache:
  15. name: Container cache
  16. runs-on: ubuntu-24.04
  17. permissions:
  18. # Organization GHCR
  19. packages: write
  20. steps:
  21. - name: Prune
  22. uses: snok/container-retention-policy@v3.0.0
  23. with:
  24. account: "${{ github.repository_owner }}"
  25. token: "${{ secrets.GITHUB_TOKEN }}"
  26. image-names: "cache"
  27. image-tags: "!searxng-*"
  28. cut-off: "1w"
  29. keep-n-most-recent: "100"