Compare commits

..

4 Commits

Author SHA1 Message Date
42b107c25c
Попытка ускорить деплой на сервер
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-09-18 22:04:51 +03:00
7f3ceb9544
Revert "Попытка ускорить деплой на сервер"
This reverts commit 4d9689c4df.
2024-09-18 22:04:39 +03:00
3b1366bb90
Revert "Попытка ускорить деплой на сервер"
This reverts commit 44c0e41c46.
2024-09-18 22:04:39 +03:00
062cfe84af
Revert "Попытка ускорить деплой на сервер"
This reverts commit 8b574f3df2.
2024-09-18 22:04:39 +03:00

View File

@ -59,13 +59,13 @@ steps:
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts - ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- tar czf - ./public/* | ssh -p $SSH_DEPLOY_PORT $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST "cd $SSH_DEPLOY_PATH/ru-new && tar xzf -" - scp -r -C -P $SSH_DEPLOY_PORT ./public/* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH/ru-new
- 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" - 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 # drone sign --save upagge/digital-garden
--- ---
kind: signature kind: signature
hmac: 5a9a97786d6e0d333a29a9444f47475a04b15563ea6da8679bfb9c794680024f hmac: f95d32011513bfb9688197ebdef70c58ead896f9c2e719575385ff6aea6dbd0a
... ...