Skip to content

Commit 13d49b5

Browse files
authored
Refactor: health-check를 위한 의존성 및 경로 추가 (#294)
* Add: dependencies 추가 * Add: permitPaths 추가 * Chore: deploy 파일 수정 * Chore: 도커이미지 관련 코드 임시 주석
1 parent 530f928 commit 13d49b5

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

.github/workflows/gradle.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ jobs:
5858
- name: docker Hub push
5959
run: docker push ${{ secrets.DOCKER_USERNAME }}/openbook
6060

61-
run-docker-image-on-ec2:
62-
needs: build-docker-image
63-
runs-on: self-hosted
64-
65-
steps:
66-
- name: deploy
67-
uses: appleboy/ssh-action@master
68-
with:
69-
host: ${{ secrets.HOST_DEV }}
70-
username: ${{ secrets.USERNAME }}
71-
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
72-
script: |
73-
cd ~
74-
chmod +x ./deploy.sh
75-
./deploy.sh
61+
# run-docker-image-on-ec2:
62+
# needs: build-docker-image
63+
# runs-on: self-hosted
64+
#
65+
# steps:
66+
# - name: deploy
67+
# uses: appleboy/ssh-action@master
68+
# with:
69+
# host: ${{ secrets.HOST_DEV }}
70+
# username: ${{ secrets.USERNAME }}
71+
# key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
72+
# script: |
73+
# cd ~
74+
# chmod +x ./deploytest.sh
75+
# ./deploytest.sh
7676

7777

7878

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies {
2828
implementation 'org.springframework.boot:spring-boot-starter-security'
2929
implementation 'org.springframework.boot:spring-boot-starter-web'
3030
implementation 'org.springframework.boot:spring-boot-devtools'
31+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
3132

3233
implementation 'org.springframework.boot:spring-boot-starter-validation'
3334

src/main/java/com/openbook/openbook/configuration/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class SecurityConfig {
2525
private final CustomAuthenticationEntryPoint customAuthenticationEntryPoint;
2626

2727
private final String[] permitPaths = {
28+
"/actuator/health",
2829
"/login",
2930
"/signup",
3031
"/booths",

0 commit comments

Comments
 (0)