Prune ghcr.io packages #45
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 ghcr.io packages | |
# Controls when the workflow will run | |
on: | |
schedule: | |
# Runs every Sunday at 4am PT. | |
- cron: '0 11 * * 0' | |
workflow_dispatch: | |
jobs: | |
prune: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prune per-commit container versions | |
# You may pin to the exact commit or the version. | |
uses: vlaurin/action-ghcr-prune@3c4f76ff904f206ace31dab45f37eb7c5a8e3d37 | |
with: | |
token: ${{ secrets.GHCR_PRUNE_PAT }} | |
container: lakeroad | |
organization: uwsampl | |
dry-run: false | |
keep-last: 5 | |
tag-regex: "sha-.*" | |
- name: Prune untagged container versions | |
# You may pin to the exact commit or the version. | |
uses: vlaurin/action-ghcr-prune@3c4f76ff904f206ace31dab45f37eb7c5a8e3d37 | |
with: | |
token: ${{ secrets.GHCR_PRUNE_PAT }} | |
container: lakeroad | |
organization: uwsampl | |
dry-run: false | |
untagged: true |