Skip to content

Commit 1786810

Browse files
add cleanup commands to azure pipeline
1 parent 216b08e commit 1786810

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
@@ -75,6 +75,15 @@ steps:
7575
cp $(node_private_key.secureFilePath) code-examples-node-private/config/private.key
7676
displayName: 'place private.key'
7777

78+
- task: CmdLine@2
79+
inputs:
80+
script: 'docker rm -f $(docker ps -a -q)'
81+
continueOnError: true
82+
83+
- script: |
84+
docker system prune -a --force
85+
displayName: "cleanup docker files"
86+
7887
- task: Docker@2
7988
displayName: Build node image
8089
inputs:

0 commit comments

Comments
 (0)