mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
* Add docker image clean script * Change the command not to generate warning if no such image presents * Update linux-gpu-ci-pipeline.yml * Update linux-ci-pipeline.yml * Update azure-pipelines-py-packaging.yml
40 lines
1.5 KiB
YAML
40 lines
1.5 KiB
YAML
jobs:
|
|
- job: Linux_CI_GPU_Dev
|
|
pool: Linux-GPU-CUDA10
|
|
steps:
|
|
- template: templates/set-test-data-variables-step.yml
|
|
|
|
- task: CmdLine@2
|
|
displayName: 'Clean untagged docker images'
|
|
inputs:
|
|
script: |
|
|
docker rm $(docker ps -a | grep Exited | awk '{print $1;}') || true
|
|
docker images -q --filter "dangling=true" | xargs -n1 -r docker rmi
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
continueOnError: true
|
|
condition: always()
|
|
|
|
- task: CmdLine@2
|
|
displayName: 'Download azcopy'
|
|
inputs:
|
|
script: |
|
|
curl -so azcopy.tar.gz -L 'https://aka.ms/downloadazcopy-v10-linux'
|
|
tar -zxvf azcopy.tar.gz --strip 1
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
|
|
- task: PythonScript@0
|
|
displayName: 'Download test data'
|
|
inputs:
|
|
scriptPath: '$(Build.SourcesDirectory)/tools/ci_build/github/download_test_data.py'
|
|
arguments: --test_data_url $(TestDataUrl)
|
|
pythonInterpreter: '/usr/bin/python3'
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
|
|
- script: 'tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d gpu -r $(Build.BinariesDirectory)'
|
|
displayName: 'Command Line Script'
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
displayName: 'Component Detection'
|
|
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'))
|
|
|
|
- template: templates/clean-agent-build-directory-step.yml
|