From b384b2f462124c00aa7c64f1b46ffaa18cdd1962 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Tue, 3 Mar 2026 02:05:52 +0800 Subject: [PATCH] fix: ensure claude-dev runtime directory exists before snapshot Create /claude-dev-runtime before writing previous-image.txt so post-build record step does not fail when the bind path is absent. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/deploy-claude-dev-dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/deploy-claude-dev-dev.yml b/.gitea/workflows/deploy-claude-dev-dev.yml index 36f56b7..6602437 100644 --- a/.gitea/workflows/deploy-claude-dev-dev.yml +++ b/.gitea/workflows/deploy-claude-dev-dev.yml @@ -89,6 +89,7 @@ jobs: - name: Record previous image run: | set -euo pipefail + mkdir -p /claude-dev-runtime previous_image="$(docker inspect -f '{{.Config.Image}}' claude-dev 2>/dev/null || true)" if [ -n "$previous_image" ]; then printf '%s\n' "$previous_image" > /claude-dev-runtime/previous-image.txt