Prune Registry #5
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: Prune Registry | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
env: | |
# For image ghcr.io/foo/bar, it will use 'foo' because of the token, and 'bar' is the project_name | |
# For more options for configs, see https://github.com/vlaurin/action-ghcr-prune | |
PROJECT_NAME: viziquer | |
jobs: | |
prune-images: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prune | |
uses: vlaurin/action-ghcr-prune@v0.5.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
container: ${{ env.PROJECT_NAME }} | |
dry-run: true # Dry-run first, then change to `false` | |
keep-younger-than: 0 # days | |
keep-last: 6 | |
prune-untagged: true |