From a5748a3e2b754d0cc2b7960862046f9be9cc6d29 Mon Sep 17 00:00:00 2001 From: siujamo Date: Wed, 20 May 2026 01:15:43 -0500 Subject: [PATCH] fix: decode SSH key from base64 to avoid masking issues in GitLab CI GitLab masked variables reject values with whitespace (like SSH keys), so store the key as base64 and decode it in the pipeline. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a62c66a..4e23e28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,7 @@ deploy: before_script: - apk add --no-cache openssh-client rsync - mkdir -p ~/.ssh - - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519 + - echo "$SSH_PRIVATE_KEY_BASE64" | base64 -d > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H onixbyte.cn >> ~/.ssh/known_hosts script: