Skip to content

Commit cc8df91

Browse files
add cleanup commands to azure pipeline
1 parent 2a5b3a7 commit cc8df91

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

azure-pipelines.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ steps:
100100

101101
- script: dir $(Build.SourcesDirectory)/code-examples-python-private/app
102102

103+
- task: CmdLine@2
104+
inputs:
105+
script: 'docker rm -f $(docker ps -a -q)'
106+
continueOnError: true
107+
108+
- script: |
109+
docker system prune -a --force
110+
displayName: "cleanup docker files"
111+
103112
- task: Docker@2
104113
displayName: Build python image
105114
inputs:

0 commit comments

Comments
 (0)