Skip to content

Commit 9ec16d2

Browse files
authored
CU-869b6nm32: Clean up container before building docker conatiner. (#226)
This is identical to the issue / fix in #216. Example failure on main branch merge: https://github.com/CogStack/cogstack-nlp/actions/runs/19426780957/attempts/1
1 parent 386a5c2 commit 9ec16d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/medcat-demo-app_build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v5
2323

24+
- name: 🧹 Free up disk space
25+
run: |
26+
df -h # Optional: Check space before build
27+
# Remove large, unnecessary packages/tools
28+
sudo rm -rf /usr/share/dotnet
29+
sudo rm -rf /usr/local/lib/android
30+
sudo rm -rf /usr/share/swift
31+
sudo rm -rf /usr/share/rust
32+
sudo rm -rf /usr/share/powershell
33+
# Remove cached tools and files
34+
sudo apt-get clean
35+
df -h # Optional: Check space before build
36+
2437
- name: Set up Docker Compose
2538
run: sudo apt-get update && sudo apt-get install -y docker-compose
2639

0 commit comments

Comments
 (0)