mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-18 05:42:00 +08:00
Use jlumbroso/free-disk-space to free space on the build node.
This commit is contained in:
parent
ab4cc0e1e1
commit
9db4f58a14
26
.github/workflows/build-image.yml
vendored
26
.github/workflows/build-image.yml
vendored
@ -23,23 +23,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Free disk space
|
- name: Free disk space
|
||||||
run: |
|
uses: jlumbroso/free-disk-space@main
|
||||||
# Free disk space.
|
with:
|
||||||
echo "::group::Before"
|
tool-cache: true
|
||||||
df -h /
|
android: true
|
||||||
echo "::endgroup::"
|
dotnet: true
|
||||||
echo "::group::Removing unneeded softwares and files..."
|
haskell: true
|
||||||
for DIR in /usr/local/lib/android /usr/share/dotnet /opt/ghc
|
large-packages: true
|
||||||
do
|
docker-images: true
|
||||||
if [ -d "$DIR" ]; then
|
swap-storage: false
|
||||||
echo "Removing $DIR..."
|
|
||||||
sudo rm -r "$DIR"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "::endgroup::"
|
|
||||||
echo "::group::After"
|
|
||||||
df -h /
|
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
id: prep
|
id: prep
|
||||||
|
Loading…
x
Reference in New Issue
Block a user