Skip to content

Commit

Permalink
fix: specify the max version requirement of apisix-base (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulbird committed Jul 28, 2022
1 parent 5e1795d commit acedbc0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package-apisix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ then
fi

# Determine the min version of openresty or apisix-base
or_version="1.17.8.2"
min_or_version="1.17.8.2"
max_or_version="1.21.5"
if [ "$OPENRESTY" == "apisix-base" ]
then
or_version="1.19.9.1.6"
min_or_version="1.21.4.1.1"
max_or_version="1.21.5"
elif [ "$OPENRESTY" == "apisix-base-latest" ]
then
# For CI
OPENRESTY="apisix-base"
or_version="latest"
min_or_version="latest"
max_or_version="latest-1"
fi

# Determine the name of artifact
Expand All @@ -50,7 +53,8 @@ fpm -f -s dir -t "$PACKAGE_TYPE" \
-a "$(uname -i)" \
-v "$PACKAGE_VERSION" \
--iteration "$ITERATION" \
-d "$OPENRESTY >= $or_version" \
-d "$OPENRESTY >= $min_or_version" \
-d "$OPENRESTY < $max_or_version" \
-d "$dep_ldap" \
-d "$dep_pcre" \
-d "$dep_which" \
Expand Down

0 comments on commit acedbc0

Please sign in to comment.