From dd52314046810108fd8eb3dd0de8bcf829315478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 30 Mar 2026 14:00:29 +0800 Subject: [PATCH] fix: resolve SSH permission issue in archive-to-main step Problem: alpine/git:latest image lacks SSH client, causing git fetch to fail Solution: Switch to node:20-alpine image and install git + openssh-client This should complete the full CI/CD pipeline successfully. --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a024570..544c5cc 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -161,7 +161,7 @@ steps: - release/** archive-to-main: - image: alpine/git:latest + image: node:20-alpine environment: SSH_PRIVATE_KEY: from_secret: ssh_private_key @@ -169,6 +169,7 @@ steps: - build-and-deploy commands: - echo "Archiving to main branch" + - apk add --no-cache git openssh-client - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa