Skip to content

Commit 425241e

Browse files
authored
chore: Prune Ubuntu environment before building docker images (#3571)
Docker builds are suddenly failing for a lack of disk space. Trying out a suggestion in https://github.com/orgs/community/discussions/179725.
2 parents a4820ca + 376f963 commit 425241e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
contents: read
4242
packages: write
4343
steps:
44+
- name: Prune container
45+
run: |
46+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/hostedtoolcache
47+
docker system prune -af
48+
4449
- name: Checkout repository
4550
uses: actions/checkout@v5
4651
with:

0 commit comments

Comments
 (0)