Skip to content

Commit 4951aaf

Browse files
authored
fix: free space during workflow (#12350)
### What Github workflow is failing on the following PR: #12262 Due to > ##[error]Error: Command failed: docker save openfoodfacts-server/backend:dev -o /tmp/openfoodfacts-server_backend_dev > write /tmp/.docker_temp_901694671: no space left on device The following PR attempt to free some space before to call "ishworkh/[email protected]" step in "build_backend:" job ### Screenshot <img width="1332" height="650" alt="Screenshot_20250907_221917" src="https://github.com/user-attachments/assets/c4e9b6cc-851b-44c0-974e-09277d537677" /> ### Related issue(s) and discussion - Fixes #-none-
1 parent 93ceee9 commit 4951aaf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ jobs:
8989
restore-keys: taxonomies-
9090
- name: build
9191
run: make build container=backend
92+
- name: Free disk space
93+
run: |
94+
echo "Before cleanup:"
95+
df -h
96+
docker system prune -f || true
97+
sudo rm -rf /usr/local/lib/android || true
98+
sudo rm -rf /opt/ghc || true
99+
sudo rm -rf /usr/share/dotnet || true
100+
sudo rm -rf /usr/local/share/boost || true
101+
echo "After cleanup:"
102+
df -h
92103
- name: push backend image as artifact
93104
uses: ishworkh/[email protected]
94105
with:

0 commit comments

Comments
 (0)