Repository navigation
Cleanup CI Docker Images #1101
This file contains hidden or 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 CI Docker Images | |
| on: | |
| schedule: | |
| # Every hour at minute 0 (UTC) | |
| - cron: "0 * * * *" | |
| workflow_dispatch: | |
| inputs: | |
| keep_count: | |
| description: Number of newest images to keep per prefix | |
| required: false | |
| default: "5" | |
| type: string | |
| dry_run: | |
| description: Dry run only (list without deleting) | |
| required: false | |
| default: false | |
| type: boolean | |
| platform: | |
| description: Platform to clean | |
| required: false | |
| default: all | |
| type: choice | |
| options: | |
| - all | |
| - nvidia | |
| - metax | |
| - moore | |
| - cambricon | |
| - hygon | |
| jobs: | |
| ci: | |
| uses: InfiniTensor/ci/.github/workflows/cleanup_ci_images.yml@infiniCore_ci | |
| with: | |
| keep_count: ${{ github.event.inputs.keep_count || '5' }} | |
| dry_run: ${{ github.event.inputs.dry_run == true }} | |
| platform: ${{ github.event.inputs.platform || 'all' }} | |
| ci_ref: infiniCore_ci | |
| secrets: inherit |