stuff
This commit is contained in:
parent
43044d7c8b
commit
b5105726ab
1 changed files with 8 additions and 1 deletions
|
|
@ -240,9 +240,16 @@ jobs:
|
|||
needs: deploy-backend
|
||||
if: always() && needs.deploy-backend.result == 'success'
|
||||
steps:
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Check Nginx Status
|
||||
run: |
|
||||
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'ENDSSH'
|
||||
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'ENDSSH'
|
||||
set -e
|
||||
echo "🔍 Проверяем статус nginx после деплоя backend..."
|
||||
if sudo systemctl is-active --quiet nginx; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue