ci: rotate Buildah storage after cache mount failure [CI] [SKIP TESTS]
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/dev-image Pipeline is running

Signed-off-by: JustMe <mr.toing@outlook.com>
This commit is contained in:
justme committed 2026-10-10 16:43:42 +08:00
1 parent e49e701a73
commit a3b9671d62
1 file changed
+4 -2
+4 -2
View File
@@ -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.