Skip to content

Cleanup old Docker Images from GitHub Container Registry #3

Cleanup old Docker Images from GitHub Container Registry

Cleanup old Docker Images from GitHub Container Registry #3

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+$'