Skip to content

Commit 4c583a8

Browse files
committed
Added some CI cleanup.
1 parent 61e1584 commit 4c583a8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ jobs:
4848
- name: Set release name
4949
run: echo "RELEASE_NAME=eoapi-$(echo "${{ github.sha }}" | cut -c1-8)" >> "$GITHUB_ENV"
5050

51+
- name: Clean up disk space
52+
run: |
53+
echo "=== Disk space before cleanup ==="
54+
df -h
55+
echo "=== Docker cleanup ==="
56+
docker system prune -af --volumes || true
57+
echo "=== Remove unused packages ==="
58+
sudo apt-get clean || true
59+
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" || true
60+
echo "=== Disk space after cleanup ==="
61+
df -h
62+
5163
- name: Start K3s cluster
5264
uses: jupyterhub/action-k3s-helm@v4
5365
with:
@@ -78,8 +90,13 @@ jobs:
7890
- name: Cleanup
7991
if: always()
8092
run: |
93+
echo "=== Cleaning up Helm release and namespace ==="
8194
helm uninstall "$RELEASE_NAME" -n eoapi || true
8295
kubectl delete namespace eoapi || true
96+
echo "=== Cleaning up Docker resources ==="
97+
docker system prune -af --volumes || true
98+
echo "=== Final disk space ==="
99+
df -h
83100
84101
validate-docs:
85102
name: Validate documentation

0 commit comments

Comments
 (0)