|
1 | | -name: package apisix-runtime deb for ubuntu 20.04(Focal Fossa) |
| 1 | +name: package apisix-runtime deb for ubuntu 24.04 |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -29,26 +29,26 @@ jobs: |
29 | 29 |
|
30 | 30 | - name: build apisix-runtime deb |
31 | 31 | run: | |
32 | | - make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=ubuntu image_tag=20.04 |
| 32 | + make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=ubuntu image_tag=24.04 |
33 | 33 |
|
34 | | - - name: run ubuntu 20.04 docker and mapping apisix-runtime deb into container |
| 34 | + - name: run ubuntu 24.04 docker and mapping apisix-runtime deb into container |
35 | 35 | run: | |
36 | | - docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" docker.io/ubuntu:20.04 /bin/bash |
| 36 | + docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu24.04Instance --net="host" docker.io/ubuntu:24.04 /bin/bash |
37 | 37 |
|
38 | 38 | - name: install deb in container |
39 | 39 | run: | |
40 | | - docker exec ubuntu20.04Instance bash -c "dpkg -i /output/apisix-runtime_${BUILD_APISIX_RUNTIME_VERSION}-0~ubuntu20.04_amd64.deb" |
| 40 | + docker exec ubuntu24.04Instance bash -c "dpkg -i /output/apisix-runtime_${BUILD_APISIX_RUNTIME_VERSION}-0~ubuntu24.04_amd64.deb" |
41 | 41 |
|
42 | 42 | - name: check and ensure apisix-runtime is installed |
43 | 43 | run: | |
44 | | - docker exec ubuntu20.04Instance bash -c "/usr/local/openresty/bin/etcdctl -h" || exit 1 |
45 | | - export APISIX_RUNTIME_VER=$(docker exec ubuntu20.04Instance bash -c "openresty -V" 2>&1 | awk '/-O2 -DAPISIX_RUNTIME_VER=/{print $5}' | awk -v FS="=" '{print $2}') |
| 44 | + docker exec ubuntu24.04Instance bash -c "/usr/local/openresty/bin/etcdctl -h" || exit 1 |
| 45 | + export APISIX_RUNTIME_VER=$(docker exec ubuntu24.04Instance bash -c "openresty -V" 2>&1 | awk '/-O2 -DAPISIX_RUNTIME_VER=/{print $5}' | awk -v FS="=" '{print $2}') |
46 | 46 | if [ "$APISIX_RUNTIME_VER" != "${BUILD_APISIX_RUNTIME_VERSION}" ]; then exit 1; fi |
47 | 47 |
|
48 | 48 | - name: Publish Artifact |
49 | 49 | |
50 | 50 | with: |
51 | | - name: apisix-runtime_${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0~ubuntu20.04_amd64.deb |
52 | | - path: output/apisix-runtime_${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0~ubuntu20.04_amd64.deb |
| 51 | + name: apisix-runtime_${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0~ubuntu24.04_amd64.deb |
| 52 | + path: output/apisix-runtime_${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0~ubuntu24.04_amd64.deb |
53 | 53 | retention-days: 5 |
54 | 54 | if-no-files-found: error |
0 commit comments