Skip to content

Commit d6bb0c4

Browse files
committed
fix: Update SSH test command with verbose output
1 parent 27a75c1 commit d6bb0c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/gradle.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ jobs:
7171
# SSH 연결 테스트
7272
- name: Test SSH connection
7373
run: |
74-
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} 'echo "Connection test successful"'
74+
chmod 600 ~/.ssh/deploy_key
75+
eval $(ssh-agent -s)
76+
ssh-add ~/.ssh/deploy_key
77+
ssh -v -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} 'echo "Connection test successful"'
7578
7679
# JAR 파일 전송
7780
- name: Copy JAR to Server

0 commit comments

Comments
 (0)