Skip to content

Commit 4acad70

Browse files
add cleanup commands to azure pipeline
1 parent 1c6f153 commit 4acad70

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
@@ -86,6 +86,15 @@ steps:
8686

8787
- script: dir $(Build.SourcesDirectory)/code-examples-ruby-private
8888

89+
- task: CmdLine@2
90+
inputs:
91+
script: 'docker rm -f $(docker ps -a -q)'
92+
continueOnError: true
93+
94+
- script: |
95+
docker system prune -a --force
96+
displayName: "cleanup docker files"
97+
8998
- task: Docker@2
9099
displayName: Build ruby image
91100
inputs:

0 commit comments

Comments
 (0)