From a3b9671d6285c53605803bb70e60556cd7416151 Mon Sep 17 00:00:00 2001 From: JustMe Date: Sat, 10 Oct 2026 16:43:42 +0800 Subject: [PATCH] ci: rotate Buildah storage after cache mount failure [CI] [SKIP TESTS] Signed-off-by: JustMe --- ci/build-dev-image.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/build-dev-image.sh b/ci/build-dev-image.sh index ee57a22..32eca5a 100644 --- a/ci/build-dev-image.sh +++ b/ci/build-dev-image.sh @@ -37,7 +37,7 @@ moshiro_apply_version registry="${ZOT_REGISTRY:-registry.oeo.one}" repository="$registry/moshiro-dev/moshiro-$component" work="$root/.release/dev-image-build/$component-$arch" -base_home="/home/justme/woodpecker/buildah-home/dev-image-build-$component-$arch" +base_home="/home/justme/woodpecker/buildah-home/dev-image-build-noble-aot-v1-$component-$arch" # 镜像标签不带 v(和正式版一致):latest 和 <版本>;构建信息和清单里的 tag 带 v image_version="$MOSHIRO_VERSION" mkdir -p "$work" "$base_home" @@ -61,7 +61,9 @@ node_rid="linux-musl-x64" [[ "$arch" == arm64 ]] && node_rid="linux-musl-arm64" # Keep writable NuGet caches isolated per parallel build (component + arch). # Reuse still applies across pipeline runs without concurrent restore races. -nuget_cache="$base_home/nuget-packages" +# Keep the package cache across Buildah storage generations so refreshing a +# damaged layer store does not force another full NuGet download. +nuget_cache="/home/justme/woodpecker/buildah-home/dev-image-build-$component-$arch/nuget-packages" mkdir -p "$nuget_cache" # A stable timestamp lets a retry of the same commit reuse the publish layer.