Cleanup old GHCR images #194
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: Cleanup old GHCR images | |
| on: | |
| schedule: | |
| # every night at 1:00. | |
| - cron: '00 3 * * *' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write # needed for deletions with GITHUB_TOKEN | |
| jobs: | |
| cleanup: | |
| name: ghcr.io cleanup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: dataaxiom/ghcr-cleanup-action@v1 | |
| with: | |
| delete-untagged: true | |
| older-than: 2 days |