@@ -42,28 +42,29 @@ jobs:
4242
4343 - name : packaging APISIX(-remote) with remote code
4444 run : |
45- wget https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/.requirements && source .requirements
46- 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
45+ 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
4746
4847 - name : packaging APISIX(-local) with local code
4948 run : |
50- wget https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/.requirements && source .requirements
5149 git clone -b ${APISIX_VERSION} https://github.com/apache/apisix.git
5250 ./build-apisix-dashboard.sh ./apisix
53- 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
51+ 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
5452
55- - name : run ubi8 docker and mapping rpm into container
56- run : |
57- 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
53+ - name : Publish Artifact
54+ 55+ with :
56+ name : apisix-remote-master-0.ubi9.6.x86_64.rpm
57+ path : output/apisix-remote-master-0.ubi9.6.x86_64.rpm
58+ retention-days : 5
59+ if-no-files-found : error
5860
59- - name : enable apisix repository in container
61+ - name : run ubi9 docker and mapping rpm into container
6062 run : |
61- docker exec ubiInstance bash -c "rpm --import https://repos.apiseven.com/KEYS"
62- docker exec ubiInstance bash -c "yum -y install https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm"
63+ 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
6364
6465 - name : install APISIX(-remote) master by rpm in container
6566 run : |
66- docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-remote-master-0.ubi8 .6.x86_64.rpm"
67+ docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-remote-master-0.ubi9 .6.x86_64.rpm"
6768 docker exec ubiInstance bash -c "apisix start"
6869
6970 - name : check and ensure APISIX(-remote) master is installed
8283
8384 - name : install APISIX(-local) by rpm in container
8485 run : |
85- docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-local-master-0.ubi8 .6.x86_64.rpm"
86+ docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-local-master-0.ubi9 .6.x86_64.rpm"
8687 docker exec ubiInstance bash -c "apisix start"
8788
8889 - name : check and ensure APISIX(-local) is installed
9899 echo "failed: failed to access Apache APISIX UI"
99100 exit 1
100101 fi
101-
102- - name : Publish Artifact
103- 104- with :
105- name : apisix-remote-master-0.ubi8.6.x86_64.rpm
106- path : output/apisix-remote-master-0.ubi8.6.x86_64.rpm
107- retention-days : 5
108- if-no-files-found : error
0 commit comments