CI: per-user digest file path (avoid /tmp collision between manual + runner)

This commit is contained in:
2026-06-17 20:51:08 +10:00
parent 1dc9c82cb3
commit 18ed7458c3
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ MANIFEST="${MANIFEST:-kubernetes/apps/bztmon-site/bztmon-site.yaml}"
GITEA_API="${GITEA_API:-https://gitea.bztmon.org/api/v1}"
TAG="$(git rev-parse --short HEAD)"
DIGEST="$(cat /tmp/bztmon-site.digest)"
DIGEST_FILE="${DIGEST_FILE:-${TMPDIR:-/tmp}/bztmon-site-$(id -un).digest}"
DIGEST="$(cat "${DIGEST_FILE}")"
REF="${REGISTRY}/${IMAGE}:${TAG}@${DIGEST}"
echo ">> new image ref: ${REF}"