Docker image retention #10
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: Docker image retention | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' # Every week | |
jobs: | |
clean: | |
name: Delete old images | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: snok/[email protected] | |
with: | |
account: user | |
token: ${{ secrets.GITHUB_TOKEN }} | |
image-names: ${{ github.event.repository.name }} | |
cut-off: 2w | |
dry-run: false |