test runner - fix v9
Some checks failed
Build and Deploy Flask App / setup (push) Successful in 3s
Build and Deploy Flask App / test (push) Successful in 36s
Build and Deploy Flask App / build-and-push (push) Successful in 1m30s
Build and Deploy Flask App / deploy (push) Failing after 12s

This commit is contained in:
Norvicdev 2026-08-04 23:25:02 +03:00
parent edaecea449
commit c86a6ba77d

View file

@ -122,9 +122,18 @@ jobs:
git checkout ${{ github.sha }}
- name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
apt-get update && apt-get install -y openssh-client
mkdir -p ~/.ssh
cat << 'KEYEOF' > ~/.ssh/deploy_key
${{ secrets.SSH_PRIVATE_KEY }}
KEYEOF
chmod 600 ~/.ssh/deploy_key
echo "=== Проверяем ключ ==="
ssh-keygen -lf ~/.ssh/deploy_key
echo "=== Добавляем хост ==="
ssh-keyscan -p ${{ env.DEPLOY_PORT }} -H ${{ env.DEPLOY_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
- name: Add host to known_hosts
run: |