Skip to content

Commit b87b8ff

Browse files
committed
f
Signed-off-by: Nic <[email protected]>
1 parent 0d568c0 commit b87b8ff

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ jobs:
6565
exit 125
6666
fi
6767
68+
code=$(curl -k -i -m 20 -o /dev/null -s -w %{http_code} http://127.0.0.1:9180/ui/)
69+
if [ ! $code -eq 200 ]; then
70+
echo "failed: failed to access Apache APISIX UI"
71+
exit 1
72+
fi
73+
6874
- name: Publish Artifact
6975
uses: actions/[email protected]
7076
with:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ jobs:
9292
exit 1
9393
fi
9494
95+
code=$(curl -k -i -m 20 -o /dev/null -s -w %{http_code} http://127.0.0.1:9180/ui/)
96+
if [ ! $code -eq 200 ]; then
97+
echo "failed: failed to access Apache APISIX UI"
98+
exit 1
99+
fi
100+
95101
- name: Publish Artifact
96102
uses: actions/[email protected]
97103
with:

utils/install-common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ install_apisix() {
105105
sed -i "1s@.*@$bin@" /tmp/build/output/apisix/usr/bin/apisix
106106
fi
107107
cp -r /usr/local/apisix/* /tmp/build/output/apisix/usr/local/apisix/
108+
cp -r /apisix/ui /tmp/build/output/apisix/usr/local/apisix/ui
108109
mv /tmp/build/output/apisix/usr/local/apisix/deps/share/lua/5.1/apisix /tmp/build/output/apisix/usr/local/apisix/
109110
if is_newer_version "${checkout_v}"; then
110111
bin='package.path = "/usr/local/apisix/?.lua;" .. package.path'

0 commit comments

Comments
 (0)