File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1818 build :
1919 runs-on : ubuntu-latest
2020 timeout-minutes : 60
21- env :
22- BUILD_APISIX_BASE_VERSION : 1.19.3.2.0
2321 services :
2422 etcd :
2523 image : bitnami/etcd:3.4.0
@@ -42,11 +40,11 @@ jobs:
4240 - name : packaging APISIX
4341 run : |
4442 make package type=rpm app=apisix version=2.7 checkout=release/2.7 image_base=centos image_tag=7 openresty=apisix-base
45- make package type=rpm app=apisix version=master checkout=master image_base=centos image_tag=7 openresty=apisix-base
43+ make package type=rpm app=apisix version=master checkout=master image_base=centos image_tag=7 openresty=apisix-base-latest
4644
4745 - name : packaging apisix-base
4846 run : |
49- make package type=rpm app=apisix-base version=${BUILD_APISIX_BASE_VERSION} image_base=centos image_tag=7
47+ make package type=rpm app=apisix-base version=latest image_base=centos image_tag=7
5048
5149 - name : run centos7 docker and mapping rpm into container
5250 run : |
5957
6058 - name : install APISIX which depens on apisix-base by rpm in container
6159 run : |
60+ docker exec centos7Instance bash -c "yum -y localinstall /output/apisix-base-latest-0.el7.x86_64.rpm"
6261 docker exec centos7Instance bash -c "yum -y localinstall /output/apisix-master-0.el7.x86_64.rpm"
6362 docker exec centos7Instance bash -c "apisix start"
6463
Original file line number Diff line number Diff line change 22set -euo pipefail
33set -x
44
5- if [ $# -gt 0 ] && [ " $1 " == " latest" ]; then
5+ if ( [ $# -gt 0 ] && [ " $1 " == " latest " ]) || [ " $version " == " latest" ]; then
66 ngx_multi_upstream_module_ver=" "
77 mod_dubbo_ver=" "
88 apisix_nginx_module_ver=" "
Original file line number Diff line number Diff line change 1717fi
1818
1919# Determine the min version of openresty or apisix-base
20- # openresty >= 1.17.8.2
21- # apisix-base >= 1.19.3.2.0
2220or_version=" 1.17.8.2"
2321if [ " $OPENRESTY " == " apisix-base" ]
2422then
2523 or_version=" 1.19.9.1.0"
24+ elif [ " $OPENRESTY " == " apisix-base-latest" ]
25+ then
26+ # For CI
27+ OPENRESTY=" apisix-base"
28+ or_version=" latest"
2629fi
2730
2831# Determine the name of artifact
You can’t perform that action at this time.
0 commit comments