Skip to content

Commit a23ed3c

Browse files
properly set NGINX_VERSION when making releases (TeslaGov#97)
1 parent d427162 commit a23ed3c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ build_module() {
2525
docker image pull debian:bullseye-slim
2626
docker image pull nginx:${NGINX_VERSION}
2727

28-
printf "${BLUE}Building module...${NC}\n"
28+
printf "${BLUE}Building module for NGINX ${NGINX_VERSION}...${NC}\n"
2929
docker image build -t ${FULL_IMAGE_NAME}:latest -t ${FULL_IMAGE_NAME}:${NGINX_VERSION} ${dockerArgs} \
3030
--build-arg NGINX_VERSION=${NGINX_VERSION} \
3131
--build-arg SOURCE_HASH=${sourceHash} .
@@ -82,15 +82,16 @@ cp_bin() {
8282

8383
make_release() {
8484
local moduleVersion=${1}
85-
local nginxVersion=${2}
85+
86+
NGINX_VERSION=${2}
8687

87-
printf "${BLUE}Making release for version ${moduleVersion} for NGINX ${nginxVersion}...${NC}\n"
88+
printf "${BLUE}Making release for version ${moduleVersion} for NGINX ${NGINX_VERSION}...${NC}\n"
8889

8990
build_module
9091
cp_bin
9192

9293
mkdir -p release
93-
tar -czvf release/ngx_http_auth_jwt_module_${moduleVersion}_nginx_${nginxVersion}.tgz \
94+
tar -czvf release/ngx_http_auth_jwt_module_${moduleVersion}_nginx_${NGINX_VERSION}.tgz \
9495
README.md \
9596
-C bin/usr/lib64/nginx/modules ngx_http_auth_jwt_module.so > /dev/null
9697
}

0 commit comments

Comments
 (0)