Skip to content

Commit 5132e45

Browse files
Update image_publishing.yml
1 parent 47b2f2f commit 5132e45

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/image_publishing.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v3
1515

16+
- name: Free disk space
17+
run: |
18+
echo "Initial disk usage:"
19+
df -h
20+
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 "$AGENT_TOOLSDIRECTORY"
25+
26+
echo "After cleanup:"
27+
df -h
28+
1629
1730
- name: Docker meta
1831
id: meta
@@ -40,3 +53,10 @@ jobs:
4053
push: true
4154
tags: ${{ steps.meta.outputs.tags }}
4255
platforms: linux/amd64,linux/arm64
56+
no-cache: true
57+
58+
- name: Cleanup Docker
59+
if: always()
60+
run: |
61+
docker system prune -af || true
62+
df -h

0 commit comments

Comments
 (0)