Cleanup old Docker Images from GitHub Container Registry #2
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: Cleanup old Docker Images from GitHub Container Registry | |
on: | |
workflow_dispatch: # Creates button in web UI to run the workflow manually, shouldn't be needed | |
schedule: | |
- cron: '0 0 * * *' # Run at 00:00 UTC every day | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete old untagged packages | |
uses: actions/delete-package-versions@v5 | |
with: | |
package-name: implementation-bridge-repo-converter | |
package-type: container | |
min-versions-to-keep: 10 | |
ignore-versions: '^v\d+\.\d+\.\d+$' |