From 78afc701cdbe6ae5fbe3acff7f5e6645ee04f99f Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Wed, 29 Apr 2026 14:40:21 +0800 Subject: [PATCH] fix(drone): disable cloning and set HOME environment variable for deployment - Disabled the cloning step in the Drone configuration to streamline the deployment process. - Set the HOME environment variable to /root to ensure proper SSH key handling during deployment. These changes enhance the deployment workflow by optimizing the CI/CD pipeline configuration. --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2cc9b9d..18ada47 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,9 @@ trigger: event: - push +clone: + disable: true + steps: - name: deploy environment: @@ -26,6 +29,7 @@ steps: BOOTSTRAP_ADMIN_PASSWORD: from_secret: BOOTSTRAP_ADMIN_PASSWORD commands: + - export HOME=/root - mkdir -p "$HOME/.ssh" - chmod 700 "$HOME/.ssh" - 'printf "%s\n" "$DEPLOY_SSH_KEY" > "$HOME/.ssh/id_rsa"'