Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ build_module() {
docker image pull debian:bullseye-slim
docker image pull nginx:${NGINX_VERSION}

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

make_release() {
local moduleVersion=${1}
local nginxVersion=${2}

NGINX_VERSION=${2}

printf "${BLUE}Making release for version ${moduleVersion} for NGINX ${nginxVersion}...${NC}\n"
printf "${BLUE}Making release for version ${moduleVersion} for NGINX ${NGINX_VERSION}...${NC}\n"

build_module
cp_bin

mkdir -p release
tar -czvf release/ngx_http_auth_jwt_module_${moduleVersion}_nginx_${nginxVersion}.tgz \
tar -czvf release/ngx_http_auth_jwt_module_${moduleVersion}_nginx_${NGINX_VERSION}.tgz \
README.md \
-C bin/usr/lib64/nginx/modules ngx_http_auth_jwt_module.so > /dev/null
}
Expand Down