Cleanup old Docker Images from GitHub Container Registry #3
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 * * 0' # Run on Sundays at 00:00 UTC every week | |
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 | |
delete-only-untagged-versions: 'true' | |
ignore-versions: '^v\d+\.\d+\.\d+$' |