ci: 移除 deploy 工作流中多余的依赖安装和健康检查步骤
This commit is contained in:
@@ -12,12 +12,6 @@ jobs:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: aliyun
|
||||
steps:
|
||||
- name: Setup Dependencies
|
||||
run: |
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
apk add --no-cache nodejs docker docker-cli-compose
|
||||
dockerd &
|
||||
|
||||
- name: Checkout
|
||||
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
|
||||
|
||||
@@ -36,12 +30,6 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
runs-on: aliyun
|
||||
steps:
|
||||
- name: Setup Dependencies
|
||||
run: |
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
apk add --no-cache nodejs docker docker-cli-compose
|
||||
dockerd &
|
||||
|
||||
- name: Checkout
|
||||
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
|
||||
|
||||
@@ -50,16 +38,3 @@ jobs:
|
||||
chmod +x deploy.sh
|
||||
./deploy.sh build
|
||||
./deploy.sh restart
|
||||
|
||||
- name: Health Check
|
||||
run: |
|
||||
for i in $(seq 1 10); do
|
||||
if curl -sf http://localhost/api/health > /dev/null 2>&1; then
|
||||
echo "服务启动成功"
|
||||
exit 0
|
||||
fi
|
||||
echo "等待服务启动... ($i/10)"
|
||||
sleep 3
|
||||
done
|
||||
echo "服务启动超时"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user