@@ -39,27 +39,28 @@ jobs:
3939
4040 - name : packaging APISIX(-remote) with remote code
4141 run : |
42- wget https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/.requirements && source .requirements
43- make package type=rpm app=apisix version=master checkout=${APISIX_VERSION} runtime_version=${APISIX_RUNTIME} image_base=registry.access.redhat.com/ubi8/ubi image_tag=8.6 artifact=apisix-remote
42+ make package type=rpm app=apisix version=master checkout=${APISIX_VERSION} image_base=registry.access.redhat.com/ubi9/ubi image_tag=9.6 artifact=apisix-remote
4443
4544 - name : packaging APISIX(-local) with local code
4645 run : |
47- wget https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/.requirements && source .requirements
4846 git clone -b ${APISIX_VERSION} https://github.com/apache/apisix.git
49- make package type=rpm app=apisix version=master checkout=${APISIX_VERSION} runtime_version=${APISIX_RUNTIME} image_base=registry.access.redhat.com/ubi8 /ubi image_tag=8 .6 local_code_path=./apisix artifact=apisix-local
47+ make package type=rpm app=apisix version=master checkout=${APISIX_VERSION} image_base=registry.access.redhat.com/ubi9 /ubi image_tag=9 .6 local_code_path=./apisix artifact=apisix-local
5048
51- - name : run ubi8 docker and mapping rpm into container
52- run : |
53- docker run -itd -v $PWD/output:/output -v $(pwd)/test/apisix/config.yaml:/usr/local/apisix/conf/config.yaml --name ubiInstance --net="host" registry.access.redhat.com/ubi8/ubi:8.6 /bin/bash
49+ - name : Publish Artifact
50+ 51+ with :
52+ name : apisix-remote-master-0.ubi9.6.x86_64.rpm
53+ path : output/apisix-remote-master-0.ubi9.6.x86_64.rpm
54+ retention-days : 5
55+ if-no-files-found : error
5456
55- - name : enable apisix repository in container
57+ - name : run ubi9 docker and mapping rpm into container
5658 run : |
57- docker exec ubiInstance bash -c "rpm --import https://repos.apiseven.com/KEYS"
58- docker exec ubiInstance bash -c "yum -y install https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm"
59+ docker run -itd -v $PWD/output:/output -v $(pwd)/test/apisix/config.yaml:/usr/local/apisix/conf/config.yaml --name ubiInstance --net="host" registry.access.redhat.com/ubi9/ubi:9.6 /bin/bash
5960
6061 - name : install APISIX(-remote) master by rpm in container
6162 run : |
62- docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-remote-master-0.ubi8 .6.x86_64.rpm"
63+ docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-remote-master-0.ubi9 .6.x86_64.rpm"
6364 docker exec ubiInstance bash -c "apisix start"
6465
6566 - name : check and ensure APISIX(-remote) master is installed
7879
7980 - name : install APISIX(-local) by rpm in container
8081 run : |
81- docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-local-master-0.ubi8 .6.x86_64.rpm"
82+ docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-local-master-0.ubi9 .6.x86_64.rpm"
8283 docker exec ubiInstance bash -c "apisix start"
8384
8485 - name : check and ensure APISIX(-local) is installed
8889 echo "failed: failed to install Apache APISIX by rpm"
8990 exit 1
9091 fi
91-
92- - name : Publish Artifact
93- 94- with :
95- name : apisix-remote-master-0.ubi8.6.x86_64.rpm
96- path : output/apisix-remote-master-0.ubi8.6.x86_64.rpm
97- retention-days : 5
98- if-no-files-found : error
0 commit comments