Попытка ускорить деплой на сервер
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2024-09-18 21:54:52 +03:00
parent 6f57a049d4
commit 4d9689c4df
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -59,13 +59,13 @@ steps:
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- scp -r -P $SSH_DEPLOY_PORT ./public/* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH/ru-new
- tar czf - ./public/* | ssh -С -p $SSH_DEPLOY_PORT $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST "cd $SSH_DEPLOY_PATH/ru-new && tar xzf -"
- ssh -p $SSH_DEPLOY_PORT $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST "rm -rf $SSH_DEPLOY_PATH/ru/* && mv $SSH_DEPLOY_PATH/ru-new/* $SSH_DEPLOY_PATH/ru"
# drone sign --save upagge/digital-garden
---
kind: signature
hmac: c9ff18295f1971e3f052359dfa8edf863932dd0f64446af39644c31253c9b189
hmac: 3d2b62aef4c7d90a04d656fdc67c1e074e6dd0dd2534119bb9b913f8e2881f1a
...