Skip to content

Commit

Permalink
feat: add grpc-client-nginx-module for the CI (#231)
Browse files Browse the repository at this point in the history
Currently, we only build it in the CI.
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Aug 4, 2022
1 parent ab0325b commit b77fe66
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build-apisix-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ set -euo pipefail
set -x

version=${version:-0.0.0}
grpc_client_nginx_module_ver="main"

if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
ngx_multi_upstream_module_ver="master"
mod_dubbo_ver="master"
apisix_nginx_module_ver="main"
wasm_nginx_module_ver="main"
lua_var_nginx_module_ver="master"
debug_args="--with-debug"
debug_args="--with-debug --add-module=../grpc-client-nginx-module-${grpc_client_nginx_module_ver} "
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
else
ngx_multi_upstream_module_ver="1.1.1"
Expand Down Expand Up @@ -71,6 +72,14 @@ else
lua-var-nginx-module-${lua_var_nginx_module_ver}
fi

if [ "$repo" == grpc-client-nginx-module ]; then
cp -r "$prev_workdir" ./grpc-client-nginx-module-${grpc_client_nginx_module_ver}
else
git clone --depth=1 -b $grpc_client_nginx_module_ver \
https://github.com/api7/grpc-client-nginx-module \
grpc-client-nginx-module-${grpc_client_nginx_module_ver}
fi

cd ngx_multi_upstream_module-${ngx_multi_upstream_module_ver} || exit 1
./patch.sh ../openresty-${or_ver}
cd ..
Expand Down

0 comments on commit b77fe66

Please sign in to comment.