Skip to content

Commit bae1550

Browse files
LiteSunnic-6443
andcommitted
chore: upgrade to ubi 9.6 for rpm workflows (#442)
Signed-off-by: Nic <[email protected]> Co-authored-by: Nic <[email protected]>
1 parent 2c3e7df commit bae1550

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
@@ -30,8 +30,7 @@ jobs:
3030
3131
- name: run apisix packaging
3232
run: |
33-
wget https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/.requirements && source .requirements
34-
make package type=deb app=apisix version=${PACKAGE_APISIX_VERSION} runtime_version=${APISIX_RUNTIME} checkout=${APISIX_VERSION} image_base=ubuntu image_tag=20.04
33+
make package type=deb app=apisix version=${PACKAGE_APISIX_VERSION} checkout=${APISIX_VERSION} image_base=ubuntu image_tag=20.04
3534
3635
- name: install apisix deb into container
3736
run: |

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

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
uses: actions/[email protected]
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
@@ -78,7 +79,7 @@ jobs:
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
@@ -88,11 +89,3 @@ jobs:
8889
echo "failed: failed to install Apache APISIX by rpm"
8990
exit 1
9091
fi
91-
92-
- name: Publish Artifact
93-
uses: actions/[email protected]
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

.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)