Skip to content

Commit a3f09f1

Browse files
authored
ci: use latest apisix-base with latest apisix (#150)
1 parent 12e3863 commit a3f09f1

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/package-apisix-rpm-el7-with-apisix-base.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
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: |
@@ -59,6 +57,7 @@ jobs:
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

build-apisix-base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33
set -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=""

package-apisix.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ then
1717
fi
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
2220
or_version="1.17.8.2"
2321
if [ "$OPENRESTY" == "apisix-base" ]
2422
then
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"
2629
fi
2730

2831
# Determine the name of artifact

0 commit comments

Comments
 (0)