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 1 week ago
parent
commit
78afc701cd
  1. 4
      .drone.yml

4
.drone.yml

@ -8,6 +8,9 @@ trigger:
event: event:
- push - push
clone:
disable: true
steps: steps:
- name: deploy - name: deploy
environment: environment:
@ -26,6 +29,7 @@ steps:
BOOTSTRAP_ADMIN_PASSWORD: BOOTSTRAP_ADMIN_PASSWORD:
from_secret: BOOTSTRAP_ADMIN_PASSWORD from_secret: BOOTSTRAP_ADMIN_PASSWORD
commands: commands:
- export HOME=/root
- mkdir -p "$HOME/.ssh" - mkdir -p "$HOME/.ssh"
- chmod 700 "$HOME/.ssh" - chmod 700 "$HOME/.ssh"
- 'printf "%s\n" "$DEPLOY_SSH_KEY" > "$HOME/.ssh/id_rsa"' - 'printf "%s\n" "$DEPLOY_SSH_KEY" > "$HOME/.ssh/id_rsa"'

Loading…
Cancel
Save