From 078eacf1cbc9868fbd0fcda228d7d65448f725c0 Mon Sep 17 00:00:00 2001 From: JustMe Date: Mon, 5 Oct 2026 08:29:08 -0700 Subject: [PATCH] ci: persist Buildah cache for Linux releases --- ci/release-linux.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ci/release-linux.sh b/ci/release-linux.sh index 51c4715..c1aac88 100644 --- a/ci/release-linux.sh +++ b/ci/release-linux.sh @@ -40,6 +40,13 @@ find "$output" -type f -name '*.pdb' -delete cp -a "$output/." "$container_context/app/" : > "$container_context/data/.keep" +# Woodpecker's local backend isolates HOME per workflow. Keep Buildah's image +# store outside that temporary directory so the runtime base image is reusable +# across releases. Separate stores avoid concurrent amd64/arm64 writers. +buildah_home="/home/justme/woodpecker/buildah-home/$arch" +mkdir -p "$buildah_home" +export HOME="$buildah_home" + export REGISTRY_AUTH_FILE="$root/.release/auth/zot-linux-$arch.json" mkdir -p "$(dirname "$REGISTRY_AUTH_FILE")" logged_in=false @@ -58,10 +65,10 @@ local_image="localhost/monitor-backend:$version-$arch" buildah bud --tls-verify=true --arch "$arch" \ --build-arg "APP_VERSION=$version" \ -f "$root/packaging/container/Backend.Containerfile" \ - -t "$local_image" "$container_context" >/dev/null + -t "$local_image" "$container_context" pushed=false for attempt in 1 2 3; do - if buildah push --tls-verify=true "$local_image" "docker://$image:$version-$arch" >/dev/null; then + if buildah push --tls-verify=true "$local_image" "docker://$image:$version-$arch"; then pushed=true break fi