Selective Docker prune (preserve build cache) + k3s retry #39

Merged
will.anderson merged 1 commits from fix/stage-source-check into dev 2026-05-10 02:22:10 +00:00
3 changed files with 15 additions and 3 deletions
+7 -1
View File
@@ -77,7 +77,13 @@ jobs:
- name: Prune Docker to reclaim disk
run: |
docker system prune -f 2>&1 || echo "prune skipped (another prune in progress)"
# Remove stopped containers, dangling images, unused volumes/networks.
# Do NOT prune build cache — that keeps Docker builds fast and under
# the ~26min runner restart window. Selective pruning frees ~4-5GB
# which is enough to prevent overlay2 "no space left on device" errors.
docker container prune -f 2>&1 || true
docker image prune -f 2>&1 || true
docker volume prune -f 2>&1 || true
df -h /
# ── El SDK setup ──────────────────────────────────────────────────────
+7 -1
View File
@@ -98,7 +98,13 @@ jobs:
- name: Prune Docker to reclaim disk
run: |
docker system prune -f 2>&1 || echo "prune skipped (another prune in progress)"
# Remove stopped containers, dangling images, unused volumes/networks.
# Do NOT prune build cache — that keeps Docker builds fast and under
# the ~26min runner restart window. Selective pruning frees ~4-5GB
# which is enough to prevent overlay2 "no space left on device" errors.
docker container prune -f 2>&1 || true
docker image prune -f 2>&1 || true
docker volume prune -f 2>&1 || true
df -h /
- name: Compute image tag
+1 -1
View File
@@ -44,7 +44,7 @@ RUN cc -O2 -rdynamic \
-lcurl -lpthread -ldl -lm -lssl -lcrypto
# ── Download k3s binary ───────────────────────────────────────────────────────
RUN curl -fL https://github.com/k3s-io/k3s/releases/download/v1.32.4%2Bk3s1/k3s -o /usr/local/bin/k3s \
RUN curl -fL --retry 3 --retry-delay 10 https://github.com/k3s-io/k3s/releases/download/v1.32.4%2Bk3s1/k3s -o /usr/local/bin/k3s \
&& chmod +x /usr/local/bin/k3s
# ── Stage 2: runtime image ────────────────────────────────────────────────────