Browse Source

Add free disk space step to container build workflows to prevent 'No space left on device' errors

free space
pull/7444/merge
Chris Lu 2 days ago
parent
commit
0e385122b5
  1. 12
      .github/workflows/container_release4.yml

12
.github/workflows/container_release4.yml

@ -17,6 +17,18 @@ jobs:
-
name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v2
-
name: Free Disk Space
run: |
echo "Before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker system prune -af
echo "After cleanup:"
df -h
-
name: Docker meta
id: docker_meta

Loading…
Cancel
Save