CI: per-user digest file path (avoid /tmp collision between manual + runner)
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user