ci: rotate Buildah storage after cache mount failure [CI] [SKIP TESTS]
Signed-off-by: JustMe <mr.toing@outlook.com>
This commit is contained in:
1 parent
e49e701a73
commit
a3b9671d62
1 file changed
+4
-2
@@ -37,7 +37,7 @@ moshiro_apply_version
|
|||||||
registry="${ZOT_REGISTRY:-registry.oeo.one}"
|
registry="${ZOT_REGISTRY:-registry.oeo.one}"
|
||||||
repository="$registry/moshiro-dev/moshiro-$component"
|
repository="$registry/moshiro-dev/moshiro-$component"
|
||||||
work="$root/.release/dev-image-build/$component-$arch"
|
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
|
# 镜像标签不带 v(和正式版一致):latest 和 <版本>;构建信息和清单里的 tag 带 v
|
||||||
image_version="$MOSHIRO_VERSION"
|
image_version="$MOSHIRO_VERSION"
|
||||||
mkdir -p "$work" "$base_home"
|
mkdir -p "$work" "$base_home"
|
||||||
@@ -61,7 +61,9 @@ node_rid="linux-musl-x64"
|
|||||||
[[ "$arch" == arm64 ]] && node_rid="linux-musl-arm64"
|
[[ "$arch" == arm64 ]] && node_rid="linux-musl-arm64"
|
||||||
# Keep writable NuGet caches isolated per parallel build (component + arch).
|
# Keep writable NuGet caches isolated per parallel build (component + arch).
|
||||||
# Reuse still applies across pipeline runs without concurrent restore races.
|
# 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"
|
mkdir -p "$nuget_cache"
|
||||||
|
|
||||||
# A stable timestamp lets a retry of the same commit reuse the publish layer.
|
# A stable timestamp lets a retry of the same commit reuse the publish layer.
|
||||||
|
|||||||
Reference in new issue
Block a user