ci: install SSH client in Alpine Linux for deployment

Fix CI failure caused by missing SSH client in node:20-alpine image.

Problem:
- Alpine Linux doesn't include SSH client by default
- This caused CI to fail with '/bin/sh: ssh: not found'

Solution:
- Install openssh-client and rsync packages using apk
- This enables SSH connections to production server

This should resolve the final CI failure and allow successful deployment.
This commit is contained in:
张翔
2026-03-30 11:31:56 +08:00
parent 3d6fd457c6
commit a314b5c370
+3 -1
View File
@@ -112,7 +112,7 @@ steps:
- dev
build-and-deploy:
image: *node_image
image: node:20-alpine
environment:
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
@@ -123,6 +123,8 @@ steps:
- lint
- type-check
commands:
- echo "Installing SSH client"
- apk add --no-cache openssh-client rsync
- echo "Building production artifacts"
- npm run build
- echo "Build completed"