"include/vscode:/vscode.git/clone" did not exist on "1f8a50e429735ded6b27bfdfb96d0e0aa4d8627b"
Unverified Commit b9a2262b authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] fix linux runners running out of disk space (fixed #6635) (#6636)

parent 16c12ef6
...@@ -50,6 +50,35 @@ resources: ...@@ -50,6 +50,35 @@ resources:
tasks: true tasks: true
jobs: jobs:
########################################### ###########################################
- job: Maintenance
###########################################
pool: mariner-20240410-0
container: ubuntu-latest
# routine maintenance (like periodically deleting old files),
# to be run on 1 random CI runner in the self-hosted pool each runner
steps:
- script: |
print-diagnostics(){
echo "---- df -h -m ----"
df -h -m
echo "---- docker system df ----"
/tmp/docker system df
echo "---- docker images ----"
/tmp/docker images
}
# check disk usage
print-diagnostics
# remove old containers, container images, volumes
# ref: https://stackoverflow.com/a/32723127/3986677)
echo "---- running 'docker system prune' ----"
/tmp/docker system prune \
--all \
--force \
--filter until=720h
# check disk usage again
print-diagnostics
displayName: clean
###########################################
- job: Linux - job: Linux
########################################### ###########################################
variables: variables:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment