Skip to content

Commit 6a7fc5b

Browse files
add cleanup commands to azure pipeline
1 parent edb7a70 commit 6a7fc5b

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
@@ -87,6 +87,15 @@ steps:
8787

8888
- script: dir $(Build.SourcesDirectory)/code-examples-php-private
8989

90+
- task: CmdLine@2
91+
inputs:
92+
script: 'docker rm -f $(docker ps -a -q)'
93+
continueOnError: true
94+
95+
- script: |
96+
docker system prune -a --force
97+
displayName: "cleanup docker files"
98+
9099
- script: |
91100
echo "kill and remove any running containers"
92101
docker rm -f $(docker ps -a -q)

0 commit comments

Comments
 (0)