We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69da04d commit 8bdaf84Copy full SHA for 8bdaf84
.github/workflows/main.yaml
@@ -78,12 +78,13 @@ jobs:
78
mkdir -p ~/.ssh
79
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/webserver
80
chmod 600 ~/.ssh/webserver
81
- # Добавляем сервер в known_hosts (замените your-server-ip)
+ # Добавляем сервер в known_hosts
82
ssh-keyscan -T 10 ${{ secrets.SERVER_DNS }} >> ~/.ssh/known_hosts
83
84
- name: Test SSH connection
85
run: |
86
ssh -i ~/.ssh/webserver deployer@${{ secrets.SERVER_DNS }} exit
87
+ echo "Exit code: $?"
88
89
- name: Install ansible on runner
90
run: pip install ansible
0 commit comments