From 9eb2269d4fc81a680706b91617367264f1db8826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 30 Mar 2026 12:28:45 +0800 Subject: [PATCH] ci: switch back to node:20-alpine for faster SSH installation Optimize CI performance by using Alpine Linux with faster package management. Problem: - node:20-slim took 11+ minutes to install SSH client due to slow network - Debian-based package management is slower than Alpine's apk Solution: - Switch back to node:20-alpine - Use apk add --no-cache openssh-client rsync - Alpine's package management is much faster Benefits: - Faster SSH client installation (seconds vs minutes) - Smaller image size - Better performance in CI environment This should significantly reduce build time. --- .woodpecker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 36aba04..e9b712b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,5 +1,5 @@ variables: - - &node_image node:20-slim + - &node_image node:20-alpine steps: install-deps: @@ -125,7 +125,7 @@ steps: commands: - echo "Checking SSH client availability" - which ssh && echo "SSH client found" || echo "Installing SSH client" - - apt-get update && apt-get install -y openssh-client rsync + - apk add --no-cache openssh-client rsync - echo "Building production artifacts" - npm run build - echo "Build completed"