ci: send production host in runner health check #4
@@ -150,9 +150,11 @@ jobs:
|
|||||||
- name: 从 Runner 验证 Nginx 健康状态
|
- name: 从 Runner 验证 Nginx 健康状态
|
||||||
env:
|
env:
|
||||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
||||||
|
DEPLOY_PUBLIC_HOST: 117.72.28.96
|
||||||
run: |
|
run: |
|
||||||
curl --fail --silent --show-error \
|
curl --fail --silent --show-error \
|
||||||
--retry 5 \
|
--retry 5 \
|
||||||
--retry-delay 2 \
|
--retry-delay 2 \
|
||||||
|
--header "Host: $DEPLOY_PUBLIC_HOST" \
|
||||||
"http://$DEPLOY_HOST:4321/health/" \
|
"http://$DEPLOY_HOST:4321/health/" \
|
||||||
| grep -q '"status": "ok"'
|
| grep -q '"status": "ok"'
|
||||||
|
|||||||
Reference in New Issue
Block a user