Skip to content

Commit 7a8bbdd

Browse files
authored
Merge pull request #120 from 2025TUKCOMCD/#27-github-actions
Feat : 호스트 키 등록 로직 추가
2 parents 80efdda + d89e299 commit 7a8bbdd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/backend-ci-cd.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ jobs:
7878
with:
7979
name: build-artifact
8080

81-
# 4. JAR 파일 확인
82-
- name: Verify JAR File
83-
run: ls -la /home/runner/work/HalfFifty/HalfFifty/HalfFifty_BE-0.0.1-SNAPSHOT.jar
81+
# 4. 호스트 키 등록
82+
- name: Add Host Key to known_hosts
83+
run: |
84+
mkdir -p ~/.ssh
85+
ssh-keyscan -H ${{ secrets.AWS_IP }} >> ~/.ssh/known_hosts
8486
8587
# 5. SSH 키 파일 생성 및 권한 설정
8688
- name: Set permissions for private key

HalfFifty_BE/src/main/java/HalfFifty/HalfFifty_BE/HealthCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class HealthCheck {
88

99
@GetMapping("/")
1010
public String health() {
11-
return "server on!!!!!";
11+
return "server on!!!!!!!";
1212
}
1313
}

0 commit comments

Comments
 (0)