chore(buil): Cherrypicking build script

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2024-04-08 17:16:05 +02:00
parent 65c497f902
commit b39a2dbaa9

View file

@ -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 ]] && {