onnxruntime/tools/ci_build/github/azure-pipelines/clean-build-docker-image-cache-pipeline.yml
Edward Chen bef06dac93
Automatically clean up build docker image cache. (#5843)
Follow up to #5811 to automate cleanup of the build docker image cache.
Added a script and build definition to clean up docker images that haven't been accessed recently.
2020-11-20 11:56:26 -08:00

19 lines
556 B
YAML

jobs:
- job: Clean_Build_Docker_Image_Cache
pool:
vmImage: 'ubuntu-18.04'
timeoutInMinutes: 10
steps:
- task: AzureCLI@2
inputs:
azureSubscription: 'AIInfraBuild'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
tools/ci_build/clean_docker_image_cache.py \
--container-registry $(buildcache-container-registry) \
--log-storage-account $(buildcache-log-storage-account) \
--log-storage-container $(buildcache-log-storage-account-container)