Skip to content

Commit 8bdaf84

Browse files
author
Kroner
committed
fix7 pipeline - testing
1 parent 69da04d commit 8bdaf84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ jobs:
7878
mkdir -p ~/.ssh
7979
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/webserver
8080
chmod 600 ~/.ssh/webserver
81-
# Добавляем сервер в known_hosts (замените your-server-ip)
81+
# Добавляем сервер в known_hosts
8282
ssh-keyscan -T 10 ${{ secrets.SERVER_DNS }} >> ~/.ssh/known_hosts
8383
8484
- name: Test SSH connection
8585
run: |
8686
ssh -i ~/.ssh/webserver deployer@${{ secrets.SERVER_DNS }} exit
87+
echo "Exit code: $?"
8788
8889
- name: Install ansible on runner
8990
run: pip install ansible

0 commit comments

Comments
 (0)