Skip to content

Commit 7621ba3

Browse files
LiteSunnic-6443
andauthored
chore: upgrade to ubi 9.6 for rpm workflows (#442)
Signed-off-by: Nic <[email protected]> Co-authored-by: Nic <[email protected]>
1 parent 09a99d3 commit 7621ba3

14 files changed

+59
-323
lines changed

.circleci/config.yml

Lines changed: 0 additions & 263 deletions
This file was deleted.

.github/workflows/package-apisix-deb-ubuntu20.04.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
3434
- name: run apisix packaging
3535
run: |
36-
wget https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/.requirements && source .requirements
37-
make package type=deb app=apisix version=${PACKAGE_APISIX_VERSION} runtime_version=${APISIX_RUNTIME} checkout=${APISIX_VERSION} image_base=ubuntu image_tag=24.04
36+
make package type=deb app=apisix version=${PACKAGE_APISIX_VERSION} checkout=${APISIX_VERSION} image_base=ubuntu image_tag=24.04
3837
3938
- name: install apisix deb into container
4039
run: |

.github/workflows/package-apisix-rpm-ubi.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
uses: actions/[email protected]
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
@@ -82,7 +83,7 @@ jobs:
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
@@ -98,11 +99,3 @@ jobs:
9899
echo "failed: failed to access Apache APISIX UI"
99100
exit 1
100101
fi
101-
102-
- name: Publish Artifact
103-
uses: actions/[email protected]
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

.github/workflows/package-apisix-runtime-rpm-ubi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727
2828
- name: build apisix-runtime rpm
2929
run: |
30-
make package type=rpm app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=registry.access.redhat.com/ubi8/ubi image_tag=8.6
30+
make package type=rpm app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=registry.access.redhat.com/ubi9/ubi image_tag=9.6
3131
32-
- name: run ubi8 docker and mapping apisix-runtime rpm into container
32+
- name: run ubi9 docker and mapping apisix-runtime rpm into container
3333
run: |
34-
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubiInstance --net="host" registry.access.redhat.com/ubi8/ubi:8.6 /bin/bash
34+
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubiInstance --net="host" registry.access.redhat.com/ubi9/ubi:9.6 /bin/bash
3535
3636
- name: install rpm in container
3737
run: |
3838
docker exec ubiInstance bash -c "ls -la /output"
39-
docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-runtime-${BUILD_APISIX_RUNTIME_VERSION}-0.ubi8.6.x86_64.rpm"
39+
docker exec ubiInstance bash -c "yum -y localinstall /output/apisix-runtime-${BUILD_APISIX_RUNTIME_VERSION}-0.ubi9.6.x86_64.rpm"
4040
4141
- name: check and ensure apisix-runtime is installed
4242
run: |
@@ -47,7 +47,7 @@ jobs:
4747
- name: Publish Artifact
4848
uses: actions/[email protected]
4949
with:
50-
name: apisix-runtime-${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0.ubi8.6.x86_64.rpm
51-
path: output/apisix-runtime-${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0.ubi8.6.x86_64.rpm
50+
name: apisix-runtime-${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0.ubi9.6.x86_64.rpm
51+
path: output/apisix-runtime-${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0.ubi9.6.x86_64.rpm
5252
retention-days: 5
5353
if-no-files-found: error

0 commit comments

Comments
 (0)