Skip to content

Commit acedbc0

Browse files
authored
fix: specify the max version requirement of apisix-base (#229)
1 parent 5e1795d commit acedbc0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

package-apisix.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ then
2525
fi
2626

2727
# Determine the min version of openresty or apisix-base
28-
or_version="1.17.8.2"
28+
min_or_version="1.17.8.2"
29+
max_or_version="1.21.5"
2930
if [ "$OPENRESTY" == "apisix-base" ]
3031
then
31-
or_version="1.19.9.1.6"
32+
min_or_version="1.21.4.1.1"
33+
max_or_version="1.21.5"
3234
elif [ "$OPENRESTY" == "apisix-base-latest" ]
3335
then
3436
# For CI
3537
OPENRESTY="apisix-base"
36-
or_version="latest"
38+
min_or_version="latest"
39+
max_or_version="latest-1"
3740
fi
3841

3942
# Determine the name of artifact
@@ -50,7 +53,8 @@ fpm -f -s dir -t "$PACKAGE_TYPE" \
5053
-a "$(uname -i)" \
5154
-v "$PACKAGE_VERSION" \
5255
--iteration "$ITERATION" \
53-
-d "$OPENRESTY >= $or_version" \
56+
-d "$OPENRESTY >= $min_or_version" \
57+
-d "$OPENRESTY < $max_or_version" \
5458
-d "$dep_ldap" \
5559
-d "$dep_pcre" \
5660
-d "$dep_which" \

0 commit comments

Comments
 (0)