Skip to content

Commit

Permalink
attempt to free up space before build
Browse files Browse the repository at this point in the history
  • Loading branch information
roflcoopter committed Mar 28, 2024
1 parent a08a68f commit 482a00d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions azure-pipelines/templates/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ jobs:
command: login
containerRegistry: "Docker Hub"

- script: |
df -h
displayName: List free space before cleaning
- script: |
docker rmi -f $(docker images -aq)
docker system prune --force --all --volumes
displayName: Clean up Docker images
- script: |
df -h
displayName: List free space after cleaning
- script: docker run --rm --privileged tonistiigi/binfmt --install all
displayName: Register QEMU for cross-builds
condition: and(succeeded(), eq('${{ parameters.crossBuild }}', true))
Expand Down

0 comments on commit 482a00d

Please sign in to comment.