fix: remove --cache-to flag from non-BuildKit docker build commands
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 43s
Deploy Dashboard (Dev) / Backend Tests (push) Failing after 43s
Run Tests / Secret Detection (pull_request) Failing after 43s
Deploy Dashboard (Dev) / Frontend Tests (push) Failing after 41s
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been skipped
Run Tests / Backend Tests (pull_request) Failing after 6m23s
Run Tests / Frontend Tests (pull_request) Failing after 18s

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 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-05-03 17:32:05 +08:00
parent 3e177c703e
commit 6070a904b7
3 changed files with 2 additions and 4 deletions
@@ -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/