Skip to content

Commit 7350b95

Browse files
committed
fix
1 parent 9997f49 commit 7350b95

File tree

1 file changed

+10
-34
lines changed

1 file changed

+10
-34
lines changed

.github/workflows/release-ci-docker.yml

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,16 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Free Disk Space (Pre-checkout)
11-
run: |
12-
echo "=== Initial disk usage ==="
13-
df -h
14-
15-
echo "=== Removing unnecessary software ==="
16-
sudo rm -rf /usr/share/dotnet
17-
sudo rm -rf /usr/local/lib/android
18-
sudo rm -rf /opt/ghc
19-
sudo rm -rf /opt/hostedtoolcache
20-
sudo rm -rf /usr/local/.ghcup
21-
sudo rm -rf /usr/local/share/boost
22-
sudo rm -rf /usr/share/miniconda
23-
sudo rm -rf /usr/local/graalvm
24-
sudo rm -rf /opt/az
25-
26-
echo "=== Removing swap file ==="
27-
sudo swapoff -a
28-
sudo rm -rf /swapfile
29-
30-
echo "=== Cleaning Docker ==="
31-
docker rmi $(docker images -q) 2>/dev/null || true
32-
sudo docker system prune -af --volumes
33-
34-
echo "=== Cleaning package manager ==="
35-
sudo apt-get clean
36-
sudo apt-get autoremove -y
37-
sudo apt-get autoclean
38-
39-
echo "=== Final disk usage ==="
40-
df -h
41-
echo "=== Space freed: ~30-40 GB ==="
10+
- name: Free Disk Space (Ubuntu)
11+
uses: jlumbroso/free-disk-space@main
12+
with:
13+
tool-cache: false
14+
android: true
15+
dotnet: true
16+
haskell: true
17+
large-packages: true
18+
docker-images: true
19+
swap-storage: true
4220

4321
- uses: actions/checkout@v4
4422

@@ -64,5 +42,3 @@ jobs:
6442
tags: |
6543
yongwww/yongwww:latest
6644
yongwww/yongwww:${{ github.sha }}
67-
cache-from: type=registry,ref=yongwww/yongwww:buildcache
68-
cache-to: type=registry,ref=yongwww/yongwww:buildcache,mode=max

0 commit comments

Comments
 (0)