Browse Source

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.
main
npmrun 2 weeks ago
parent
commit
78afc701cd
  1. 4
      .drone.yml

4
.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"'

Loading…
Cancel
Save