From 115affc97e4ff3d8c769afd6e973f8955762c5d3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 24 Aug 2026 20:52:35 +0200 Subject: [PATCH] Isolate Gjallar build paths from command identities --- deploy/deploy-yggdrasil.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/deploy-yggdrasil.sh b/deploy/deploy-yggdrasil.sh index ff119cf..658082b 100644 --- a/deploy/deploy-yggdrasil.sh +++ b/deploy/deploy-yggdrasil.sh @@ -12,7 +12,8 @@ case "$source_commit" in *[!0-9a-f]*|'') echo "Invalid Gjallar source commit." > case "$request_id" in *[!A-Za-z0-9._:-]*) echo "Invalid Idunn deployment request id." >&2; exit 1;; esac sdk_image="mcr.microsoft.com/dotnet/sdk@sha256:0e53453ccfc8ff2d51319fe80c678971c6d0f8008dff3565fa88e15840b69854" -build_root="/srv/gjallar/build/$request_id" +build_id="$(printf '%s' "$request_id" | sha256sum | cut -d' ' -f1)" +build_root="/srv/gjallar/build/$build_id" workspace="$build_root/workspace" publish="$build_root/publish" release="/srv/gjallar/releases/$source_commit"