Skip to content

Commit

Permalink
Remove more Docker images and other stuff before starting CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aloubyansky committed Nov 6, 2023
1 parent 29944c6 commit 8a514ad
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/ci-prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,20 @@
# alpine 3.14 dd53f409bf0b 4 months ago 5.6MB
# alpine 3.15 c4fc93816858 4 months ago 5.58MB

time docker rmi node:14 node:16 node:18 node:14-alpine node:16-alpine node:18-alpine buildpack-deps:buster buildpack-deps:bullseye
time sudo docker image prune --all --force || true
# That is 979M
time sudo rm -rf /usr/share/dotnet
time sudo rm -rf /usr/share/dotnet || true
# That is 1.7G
time sudo rm -rf /usr/share/swift
time sudo rm -rf /usr/share/swift || true
# Remove Android
time sudo rm -rf /usr/local/lib/android
time sudo rm -rf /usr/local/lib/android || true
# Remove Haskell
time sudo rm -rf /opt/ghc
time sudo rm -rf /opt/ghc || true
# Remove pipx
time sudo rm -rf /opt/pipx
time sudo rm -rf /opt/pipx || true

# Remove infrastructure things that are unused and take a lot of space
time sudo rm -rf /opt/hostedtoolcache/CodeQL || true
time sudo rm -rf /imagegeneration/installers/go-* || true
time sudo rm -rf /imagegeneration/installers/node-* || true
time sudo rm -rf /imagegeneration/installers/python-* || true

0 comments on commit 8a514ad

Please sign in to comment.