From 6070a904b70068488dc7867503af106a72a093ff Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Sun, 3 May 2026 17:32:05 +0800 Subject: [PATCH] fix: remove --cache-to flag from non-BuildKit docker build commands The --cache-to type=inline flag is only valid with DOCKER_BUILDKIT=1. With BuildKit disabled, it causes docker build to fail with exit 125. Keep the documentation comments for when BuildKit is re-enabled. Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy-claude-dev-dev.yml | 2 -- .gitea/workflows/deploy-dev.yml | 2 +- .gitea/workflows/deploy.yml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-claude-dev-dev.yml b/.gitea/workflows/deploy-claude-dev-dev.yml index f3736aa..3d93925 100644 --- a/.gitea/workflows/deploy-claude-dev-dev.yml +++ b/.gitea/workflows/deploy-claude-dev-dev.yml @@ -58,7 +58,6 @@ jobs: if ! docker image inspect claude-dev-base:latest >/dev/null 2>&1; then echo "Base image not found, building claude-dev-base:latest..." DOCKER_BUILDKIT=0 docker build \ - --cache-to type=inline \ -f claude-dev/Dockerfile.base \ -t claude-dev-base:latest \ claude-dev/ @@ -69,7 +68,6 @@ jobs: # Build runtime image (fast, just copies scripts) DOCKER_BUILDKIT=0 docker build \ --cache-from claude-dev:latest \ - --cache-to type=inline \ -t "$CLAUDE_DEV_IMAGE" \ -t claude-dev:latest \ claude-dev/ diff --git a/.gitea/workflows/deploy-dev.yml b/.gitea/workflows/deploy-dev.yml index 310d18a..4be3836 100644 --- a/.gitea/workflows/deploy-dev.yml +++ b/.gitea/workflows/deploy-dev.yml @@ -190,7 +190,7 @@ jobs: # Docker Engine version with full BuildKit support (currently 24.x, needs 23+). # --cache-to type=inline is a no-op while BuildKit is disabled; it activates # automatically when DOCKER_BUILDKIT=0 is removed. - if ! DOCKER_BUILDKIT=0 docker build --cache-from nas-dashboard-dev:latest --cache-to type=inline -t nas-dashboard-dev:latest dashboard/; then + if ! DOCKER_BUILDKIT=0 docker build --cache-from nas-dashboard-dev:latest -t nas-dashboard-dev:latest dashboard/; then echo "Build failed. Checking for network issues..." curl -I https://registry.npmmirror.com || echo "npmmirror unreachable" curl -I https://pypi.tuna.tsinghua.edu.cn || echo "Tsinghua PyPI unreachable" diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 33f5b86..f6228b6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -215,7 +215,7 @@ jobs: # Docker Engine version with full BuildKit support (currently 24.x, needs 23+). # --cache-to type=inline is a no-op while BuildKit is disabled; it activates # automatically when DOCKER_BUILDKIT=0 is removed. - if ! DOCKER_BUILDKIT=0 docker build --cache-from nas-dashboard:latest --cache-to type=inline -t nas-dashboard:latest dashboard/; then + if ! DOCKER_BUILDKIT=0 docker build --cache-from nas-dashboard:latest -t nas-dashboard:latest dashboard/; then echo "Build failed. Checking for network issues..." curl -I https://registry.npmmirror.com || echo "npmmirror unreachable" curl -I https://pypi.tuna.tsinghua.edu.cn || echo "Tsinghua PyPI unreachable"