撤回修改
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Weiming
2026-06-27 14:03:05 +08:00
parent b0bfd88b7b
commit 4df9286bfc

View File

@@ -15,8 +15,9 @@ trigger:
steps:
- name: package
image: docker.1ms.run/library/alpine:3.20
image: docker.1ms.run/library/alpine:latest
commands:
- apk add --no-cache tar
- mkdir -p dist
- tar czf dist/feishu-approval.tar.gz --exclude=.git --exclude=dist -C . .
@@ -52,14 +53,11 @@ steps:
- set -e
- 'DEPLOY_PATH="/www/wwwroot/node_project"'
- 'ARCHIVE="/tmp/feishu-approval.tar.gz"'
- 'APP_NAME="feishu_approval"'
- 'LEGACY_APP_NAME="feishu-approval"'
- 'pm2 delete "$APP_NAME" >/dev/null 2>&1 || true'
- 'pm2 delete "$LEGACY_APP_NAME" >/dev/null 2>&1 || true'
- pm2 stop feishu_approval
- test -f "$ARCHIVE"
- mkdir -p "$DEPLOY_PATH"
- find "$DEPLOY_PATH" -mindepth 1 -delete
- tar xzf "$ARCHIVE" -C "$DEPLOY_PATH"
- chmod +x "$DEPLOY_PATH/deploy/start.sh"
- echo "Deploy OK -> $DEPLOY_PATH"
- 'pm2 start "$DEPLOY_PATH/deploy/start.sh" --name "$APP_NAME"'
- pm2 start feishu_approval