Cleanup GitHub Container Registry #401
  
    
      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 GitHub Container Registry | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # Midnight UTC daily | |
| workflow_dispatch: | |
| jobs: | |
| clean: | |
| name: Delete unused containers | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clean up images | |
| uses: snok/container-retention-policy@v3.0.0 | |
| with: | |
| image-names: servicecontrol-masstransit-connector | |
| image-tags: pr-*, *-alpha.* | |
| tag-selection: both | |
| cut-off: 2w | |
| timestamp-to-use: updated_at | |
| account: particular | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| dry-run: false |