Add job to delete old images (#10332)

This commit is contained in:
Nicolas Mowen 2024-03-09 05:04:17 -07:00 committed by GitHub
parent c721e7cfa9
commit a50e955b3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,3 +24,18 @@ jobs:
operations-per-run: 120 operations-per-run: 120
- name: Print outputs - name: Print outputs
run: echo ${{ join(steps.stale.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