mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
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.
19 lines
556 B
YAML
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)
|