Delete old container images #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Delete old container images | |
on: | |
schedule: | |
- cron: "5 0 * * 0" # every Sunday | |
jobs: | |
clean-ghcr: | |
name: Delete old unused container images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete all test containers older than a month, using a wildcard | |
uses: snok/container-retention-policy@v2 | |
with: | |
image-names: ${{ github.repository }}/* | |
cut-off: Seven days ago UTC | |
account-type: org | |
org-name: apppackio | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |