From b39a2dbaa9c9751a845a65e5dd6ac2b4e02e9471 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 8 Apr 2024 17:16:05 +0200 Subject: [PATCH] chore(buil): Cherrypicking build script Signed-off-by: rjshrjndrn --- frontend/build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/build.sh b/frontend/build.sh index 21c6c02c0..cea9019bd 100644 --- a/frontend/build.sh +++ b/frontend/build.sh @@ -10,6 +10,9 @@ ARCH=${ARCH:-amd64} +GIT_ROOT=$(git rev-parse --show-toplevel) +source $GIT_ROOT/scripts/lib/_docker.sh + git_sha=$(git rev-parse --short HEAD) image_tag=${IMAGE_TAG:-$git_sha} check_prereq() { @@ -19,6 +22,14 @@ check_prereq() { } } +# Sourcing init scripts +for file in ./build_init_*; do + if [ -f "$file" ]; then + echo "Sourcing $file" + source "$file" + fi +done + chart=frontend [[ $1 == ee ]] && ee=true [[ $PATCH -eq 1 ]] && {