Skip to content

Commit e908ec5

Browse files
committed
Add cleanup stage before build
Signed-off-by: Sameer <sameer.khan@broadcom.com>
1 parent 69dc556 commit e908ec5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/test-gh.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
uses: helm/kind-action@v1
2121
with:
2222
install_only: true
23+
- name: Free disk space (before build)
24+
run: |
25+
echo "=== Removing unnecessary packages ==="
26+
sudo rm -rf /opt/hostedtoolcache || true
27+
sudo rm -rf /usr/local/lib/android || true
28+
echo "=== Docker cleanup ==="
29+
docker system prune -af || true
30+
docker volume prune -f || true
31+
echo "=== Cleanup complete ==="
2332
- name: Log in to GitHub Container Registry
2433
uses: docker/login-action@v3
2534
with:

0 commit comments

Comments
 (0)