fix: remove redundant SDKs to reduce space used on Github Runner
This commit is contained in:
parent
bcf1a0069f
commit
fa54469ea3
1 changed files with 12 additions and 0 deletions
12
.github/workflows/dockerhub-mcp.yml
vendored
12
.github/workflows/dockerhub-mcp.yml
vendored
|
|
@ -10,11 +10,23 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check and free disk space before build
|
||||||
|
run: |
|
||||||
|
echo "=== Before cleanup ==="
|
||||||
|
df -h
|
||||||
|
echo "Removing unused preinstalled SDKs to free space..."
|
||||||
|
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc || true
|
||||||
|
docker system prune -af || true
|
||||||
|
echo "=== After cleanup ==="
|
||||||
|
df -h
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
buildkitd-flags: --root /tmp/buildkit
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue