Skip to content

NVR with realtime local object detection for IP cameras

Add job to delete old images (#10332)

Nicolas Mowena50e955b3e4e
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index a9c902f2eb..b682012dc3 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -24,3 +24,18 @@ jobs:
operations-per-run: 120
- name: Print outputs
run: echo ${{ join(steps.stale.outputs.*, ',') }}
+
+ clean_ghcr:
+ name: Delete outdated dev container images
+ runs-on: ubuntu-latest
+ steps:
+ - name: Delete old images
+ uses: snok/container-retentation-policy@v2
+ with:
+ image-names: dev-*
+ cut-off: 60 days ago UTC
+ keep-at-least: 5
+ account-type: personal
+ token: ${{ secrets.GITHUB_TOKEN }}
+ token-type: github-token
+