From bffec69846b5005cb8bd7987869162a482125780 Mon Sep 17 00:00:00 2001
From: Sebastian Schuberth <sebastian@doubleopen.org>
Date: Thu, 23 May 2024 17:23:35 +0200
Subject: [PATCH] fix(scripts): Export variables in `docker_build.sh` again

This is a fixup for ae16d01. It somewhat takes the long way around,
reading the variables from `versions.dockerfile` just to pass them in as
build arguments again, but this is the least intrusive fix.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
---
 scripts/docker_build.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/docker_build.sh b/scripts/docker_build.sh
index 4b7a42fa40300..1c93c69a47d39 100755
--- a/scripts/docker_build.sh
+++ b/scripts/docker_build.sh
@@ -25,6 +25,9 @@ DOCKER_IMAGE_ROOT="${DOCKER_IMAGE_ROOT:-ghcr.io/oss-review-toolkit}"
 
 echo "Setting ORT_VERSION to $ORT_VERSION."
 
+# shellcheck disable=SC2046
+export $(sed "s/^ARG //" "$GIT_ROOT/docker/versions.dockerfile" | xargs)
+
 # ---------------------------
 # image_build function
 # Usage ( position parameters):