TorchBench Nightly Docker Cleanup #7
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: TorchBench Nightly Docker Cleanup | |
on: | |
workflow_dispatch: | |
schedule: | |
# Cleanup the nightly Docker images every 3 months | |
- cron: '0 0 1 */3 *' | |
jobs: | |
clean-push-docker: | |
if: ${{ github.repository_owner == 'pytorch' }} | |
runs-on: [self-hosted, linux.2xlarge] | |
environment: docker-s3-upload | |
steps: | |
- uses: actions/delete-package-versions@v4 | |
with: | |
package-name: torchbench | |
package-type: container | |
delete-only-untagged-versions: true | |
token: ${{ secrets.TORCHBENCH_ACCESS_TOKEN }} | |
- uses: actions/delete-package-versions@v4 | |
with: | |
package-name: torchbench | |
package-type: container | |
min-versions-to-keep: 200 | |
token: ${{ secrets.TORCHBENCH_ACCESS_TOKEN }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }} | |
cancel-in-progress: true |