From 9f22f45189bd32efc14ddcb7b7b42a548b7aef6f Mon Sep 17 00:00:00 2001 From: Lakshantha Dissanayake Date: Thu, 1 Aug 2024 11:18:58 -0700 Subject: [PATCH] Delete Docker Cache before building Image (#14894) Co-authored-by: Glenn Jocher --- .github/workflows/docker.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index bae9221dd40..359db69ddbd 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -82,6 +82,15 @@ jobs: # tags: "latest-conda" # platforms: "linux/amd64" steps: + - name: Cleanup toolcache + # Free up to 10GB of disk space per https://github.com/ultralytics/ultralytics/pull/14894 + run: | + echo "Free space before deletion:" + df -h / + rm -rf /opt/hostedtoolcache + echo "Free space after deletion:" + df -h / + - name: Checkout repo uses: actions/checkout@v4 with: