Selective Docker prune to preserve build cache; retry k3s download
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 4m2s
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 4m2s
This commit is contained in:
@@ -77,7 +77,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Prune Docker to reclaim disk
|
- name: Prune Docker to reclaim disk
|
||||||
run: |
|
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 /
|
df -h /
|
||||||
|
|
||||||
# ── El SDK setup ──────────────────────────────────────────────────────
|
# ── El SDK setup ──────────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -98,7 +98,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Prune Docker to reclaim disk
|
- name: Prune Docker to reclaim disk
|
||||||
run: |
|
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 /
|
df -h /
|
||||||
|
|
||||||
- name: Compute image tag
|
- name: Compute image tag
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ RUN cc -O2 -rdynamic \
|
|||||||
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
||||||
|
|
||||||
# ── Download k3s binary ───────────────────────────────────────────────────────
|
# ── 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
|
&& chmod +x /usr/local/bin/k3s
|
||||||
|
|
||||||
# ── Stage 2: runtime image ────────────────────────────────────────────────────
|
# ── Stage 2: runtime image ────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user