feat(ci): 试点规范 2(test → LAN → 手动 ubuntu2)
This commit is contained in:
13
deploy/health-lan.sh
Executable file
13
deploy/health-lan.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
for _ in $(seq 1 10); do
|
||||
if curl -skf -m 5 --noproxy '*' https://192.168.51.66/homepage/ > /dev/null; then
|
||||
echo "OK https://192.168.51.66/homepage/"
|
||||
exit 0
|
||||
fi
|
||||
sleep 3
|
||||
done
|
||||
|
||||
echo "FAIL https://192.168.51.66/homepage/"
|
||||
exit 1
|
||||
Reference in New Issue
Block a user