refactor(build): clear tmp build directory
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
06581087b0
commit
c296bacbe7
5 changed files with 22 additions and 2 deletions
|
|
@ -52,6 +52,10 @@ function build_api(){
|
|||
[[ $1 == "ee" ]] && {
|
||||
destination="_api_ee"
|
||||
}
|
||||
[[ -d ../${destination} ]] && {
|
||||
echo "Removing previous build cache"
|
||||
rm -rf ../${destination}
|
||||
}
|
||||
cp -R ../api ../${destination}
|
||||
cd ../${destination} || exit_err 100
|
||||
tag=""
|
||||
|
|
|
|||
|
|
@ -54,6 +54,10 @@ function build_api(){
|
|||
[[ $1 == "ee" ]] && {
|
||||
destination="_assist_stats_ee"
|
||||
}
|
||||
[[ -d ../${destination} ]] && {
|
||||
echo "Removing previous build cache"
|
||||
rm -rf ../${destination}
|
||||
}
|
||||
cp -R ../assist-stats ../${destination}
|
||||
cd ../${destination} || exit_err 100
|
||||
tag=""
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@ function build_api(){
|
|||
[[ $1 == "ee" ]] && {
|
||||
destination="_assist_ee"
|
||||
}
|
||||
[[ -d ../${destination} ]] && {
|
||||
echo "Removing previous build cache"
|
||||
rm -rf ../${destination}
|
||||
}
|
||||
cp -R ../assist ../${destination}
|
||||
cd ../${destination}
|
||||
|
||||
|
|
@ -65,4 +69,4 @@ check_prereq
|
|||
build_api $1
|
||||
if [[ $PATCH -eq 1 ]]; then
|
||||
update_helm_release assist
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ function build_api(){
|
|||
[[ $1 == "ee" ]] && {
|
||||
destination="_peers_ee"
|
||||
}
|
||||
[[ -d ../${destination} ]] && {
|
||||
echo "Removing previous build cache"
|
||||
rm -rf ../${destination}
|
||||
}
|
||||
cp -R ../peers ../${destination}
|
||||
cd ../${destination}
|
||||
cp -R ../assist/utils .
|
||||
|
|
|
|||
|
|
@ -46,6 +46,10 @@ function build_api(){
|
|||
[[ $1 == "ee" ]] && {
|
||||
destination="_smr_ee"
|
||||
}
|
||||
[[ -d ../${destination} ]] && {
|
||||
echo "Removing previous build cache"
|
||||
rm -rf ../${destination}
|
||||
}
|
||||
cp -R ../sourcemap-reader ../${destination}
|
||||
cd ../${destination}
|
||||
cp -R ../assist/utils .
|
||||
|
|
@ -75,4 +79,4 @@ build_api $1
|
|||
echo buil_complete
|
||||
if [[ $PATCH -eq 1 ]]; then
|
||||
update_helm_release sourcemapreader
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue