Skip to content

Commit ec233cc

Browse files
committed
Reclaim ci runner storage.
1 parent 4437214 commit ec233cc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/zswatch-ci-image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v4
2626

27+
- name: Free disk space
28+
run: |
29+
df -h
30+
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /opt/hostedtoolcache/CodeQL
31+
docker system prune -af || true
32+
docker volume prune -f || true
33+
df -h
34+
2735
- name: Set up Docker Buildx
2836
uses: docker/setup-buildx-action@v3
2937

@@ -44,6 +52,9 @@ jobs:
4452
ghcr.io/zswatch/ci-base:${{ github.ref_name }}
4553
ghcr.io/zswatch/ci-base:latest
4654
55+
- name: Prune buildx cache
56+
run: docker buildx prune -af --keep-storage 5GB
57+
4758
- name: Build and push CI image
4859
uses: docker/build-push-action@v5
4960
with:

0 commit comments

Comments
 (0)