Skip to content

Commit 2062be5

Browse files
update scripts.sh to clarify target NGINX versions
1 parent 05a3798 commit 2062be5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

scripts.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ GREEN='\033[0;32m'
55
RED='\033[0;31m'
66
NC='\033[0m'
77

8+
# supported NGINX versions -- for binary distribution
9+
NGINX_VERSION_MAINLINE='1.25.3'
10+
NGINX_VERSION_STABLE='1.24.0'
11+
NGINX_VERSION_LEGACY_1='1.22.1'
12+
NGINX_VERSION_LEGACY_2='1.20.2'
13+
814
export ORG_NAME=${ORG_NAME:-teslagov}
915
export IMAGE_NAME=${IMAGE_NAME:-jwt-nginx}
1016
export FULL_IMAGE_NAME=${ORG_NAME}/${IMAGE_NAME}
1117
export CONTAINER_NAME_PREFIX=${CONTAINER_NAME_PREFIX:-jwt-nginx-test}
12-
export NGINX_VERSION=${NGINX_VERSION:-1.24.0}
18+
export NGINX_VERSION=${NGINX_VERSION:-${NGINX_VERSION_STABLE}}
1319

1420
all() {
1521
build_module
@@ -104,8 +110,8 @@ make_release() {
104110
# See: https://nginx.org/en/download.html
105111
make_releases() {
106112
local moduleVersion=$(git describe --tags --abbrev=0)
107-
local nginxVersions=('1.25.1' '1.24.0' '1.22.1' '1.20.2')
108-
113+
local nginxVersions=(${NGINX_VERSION_MAINLINE} ${NGINX_VERSION_STABLE} ${NGINX_VERSION_LEGACY_1} ${NGINX_VERSION_LEGACY_2})
114+
109115
rm -rf release/*
110116

111117
for v in ${nginxVersions[@]}; do

0 commit comments

Comments
 (0)