Skip to content

Commit efa284d

Browse files
committed
apply ssh connection test step
1 parent d51070f commit efa284d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key
3737
chmod 600 private_key
3838
39+
- name: Test SSH Connection
40+
run: ssh -o StrictHostKeyChecking=no -i private_key ubuntu@${{ secrets.SERVER_IP }} 'echo 연결되었습니다'
41+
3942
- name: Deploy files to server
4043
run: |
4144
rsync -avz -e "ssh -i private_key -o StrictHostKeyChecking=no" \

0 commit comments

Comments
 (0)