Commit 1f8b680
authored
fix: add additional cleanup in docker publish workflow, running out of runner space (#535)
Same code applied to the CI workflow in a previous PR but it's required
on the docker publish workflow as well due to the limited github runner
disk space
https://github.com/Unstructured-IO/unstructured-api/blob/main/.github/workflows/ci.yml#L120-L140
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces proactive disk cleanup to prevent runner out-of-space
failures during image builds.
>
> - Adds `Free up disk space` step in `docker-publish.yml` that removes
large preinstalled toolchains (e.g., `dotnet`, `ghc`, `boost`, Android,
CodeQL, `ghcup`, Swift) and runs `docker system prune -af --volumes`,
logging `df -h` before/after
> - Keeps the existing image build logic intact, now executed in a
subsequent `Build image` step
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
20d2aef. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent fa49907 commit 1f8b680
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
73 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
74 | 91 | | |
75 | 92 | | |
76 | 93 | | |
| |||
0 commit comments