Fix .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sam A. 2023-03-14 19:15:56 +01:00
parent bba0322bda
commit 8c15e6abb9
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -22,9 +22,9 @@ steps:
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
- ssh -o "StrictHostKeyChecking no"
cicd@cpx.servers.sapti.me "rm -rf /opt/apps/nginx/website/public/*"
cicd@cpx.servers.sapti.me "rm -rf /opt/docker/nginx/website/public/*"
- scp -o "StrictHostKeyChecking no" -r
./public cicd@cpx.servers.sapti.me:/opt/apps/nginx/website
./public cicd@cpx.servers.sapti.me:/opt/docker/nginx/website
when:
branch:
- main