File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -81,26 +81,30 @@ cp_bin() {
81
81
}
82
82
83
83
make_release () {
84
- printf " ${BLUE} Making release for version ${NGINX_VERSION} ...${NC} \n"
84
+ local moduleVersion=${1}
85
+ local nginxVersion=${2}
86
+
87
+ printf " ${BLUE} Making release for version ${moduleVersion} for NGINX ${nginxVersion} ...${NC} \n"
85
88
86
89
build_module
87
90
cp_bin
88
91
89
92
mkdir -p release
90
- tar -czvf release/ngx_http_auth_jwt_module_${NGINX_VERSION } .tgz \
93
+ tar -czvf release/ngx_http_auth_jwt_module_${moduleVersion} _nginx_ ${nginxVersion } .tgz \
91
94
README.md \
92
95
-C bin/usr/lib64/nginx/modules ngx_http_auth_jwt_module.so > /dev/null
93
96
}
94
97
95
98
# Create releases for the current mainline and stable version, as well as the 2 most recent "legacy" versions.
96
99
# See: https://nginx.org/en/download.html
97
100
make_releases () {
98
- VERSIONS=(1.20.2 1.22.1 1.24.0 1.23.4)
101
+ local moduleVersion=$( git describe --tags --abbrev=0)
102
+ local nginxVersions=(1.20.2 1.22.1 1.24.0 1.23.4)
99
103
100
104
rm -rf release/*
101
105
102
- for v in ${VERSIONS [@]} ; do
103
- NGINX_VERSION= ${v} make_release
106
+ for v in ${nginxVersions [@]} ; do
107
+ make_release ${moduleVersion} ${v}
104
108
done
105
109
}
106
110
You can’t perform that action at this time.
0 commit comments