Prune containers #45
This file contains hidden or 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: Prune containers | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * SUN" # every sunday at midnight | |
| jobs: | |
| clean: | |
| runs-on: ubuntu-latest | |
| name: Delete old images | |
| steps: | |
| - uses: snok/[email protected] | |
| with: | |
| account: pulibrary | |
| image-names: figgy | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| image-tags: "!ci !main" | |
| cut-off: 2w |