Skip to content

Commit 2558d80

Browse files
committed
Free up disk space in Docker publish workflows
Added a step to remove unused SDKs and prune Docker system volumes in both amd64 and arm64 Docker publish workflows. This helps prevent disk space issues during CI builds.
1 parent ab60b30 commit 2558d80

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/publish-docker-full-amd64.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ jobs:
1515

1616
- name: Set up Docker Buildx
1717
uses: docker/setup-buildx-action@v3
18-
18+
19+
- name: Free up disk space
20+
run: |
21+
sudo rm -rf /usr/share/dotnet
22+
sudo rm -rf /usr/local/lib/android
23+
sudo rm -rf /opt/ghc
24+
sudo rm -rf /opt/hostedtoolcache/CodeQL
25+
docker system prune -af --volumes
26+
1927
- name: Log in to GitHub Container Registry
2028
uses: docker/login-action@v3
2129
with:

.github/workflows/publish-docker-full-arm64.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ jobs:
1818

1919
- name: Set up Docker Buildx
2020
uses: docker/setup-buildx-action@v3
21-
21+
22+
- name: Free up disk space
23+
run: |
24+
sudo rm -rf /usr/share/dotnet
25+
sudo rm -rf /usr/local/lib/android
26+
sudo rm -rf /opt/ghc
27+
sudo rm -rf /opt/hostedtoolcache/CodeQL
28+
docker system prune -af --volumes
29+
2230
- name: Log in to GitHub Container Registry
2331
uses: docker/login-action@v3
2432
with:

0 commit comments

Comments
 (0)