ci: delete 200 unused manifests every hour

This commit is contained in:
peaklabs-dev
2026-11-02 00:18:31 +01:00
parent a43fcd8ecb
commit eadc4708ab
+7 -5
View File
@@ -1,6 +1,8 @@
name: Clean manifests
on:
schedule:
- cron: "20 * * * *"
workflow_dispatch:
permissions: {}
@@ -32,18 +34,18 @@ jobs:
with:
persist-credentials: false
- name: List the manifests to delete
- name: Delete the unused manifests
env:
GH_TOKEN: ${{ secrets.GHCR_CLEANUP_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_CLEANUP_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_CLEANUP_TOKEN }}
run: scripts/clean-manifests.sh
run: scripts/clean-manifests.sh --delete 200
- name: Upload the list of manifests to delete
- name: Upload the list of deleted manifests
if: ${{ always() }}
uses: actions/upload-artifact@v7.0.2
with:
name: manifests-to-delete
path: scripts/manifests-to-delete.tsv
name: deleted-manifests
path: scripts/deleted-manifests.tsv
if-no-files-found: ignore
retention-days: 90