From 0706538e9287bfbbee49330851df7181a7c22a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EC=88=98=EB=B9=88?= Date: Thu, 19 Sep 2024 15:57:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=A4=EB=B0=B1=20=EC=8B=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=9D=B4=EB=A6=84=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend_cd.yml | 3 +++ backend/src/main/java/develup/api/HealthApi.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/backend_cd.yml b/.github/workflows/backend_cd.yml index 5b596114..18713ecc 100644 --- a/.github/workflows/backend_cd.yml +++ b/.github/workflows/backend_cd.yml @@ -18,6 +18,8 @@ jobs: run: | PREVIOUS_IMAGE_NAME=$(docker ps --format "{{.Image}}") echo "name=$PREVIOUS_IMAGE_NAME" >> $GITHUB_OUTPUT + echo $PREVIOUS_IMAGE_NAME + echo $name build: name: 🏗️ Build Jar and Upload Docker Image @@ -110,6 +112,7 @@ jobs: - run: | echo ${{ needs.find_now_version.outputs.PREVIOUS_IMAGE_NAME }} echo ${{env.BACKEND_APP_IMAGE_NAME}} + echo ${{env.name}} - uses: actions/checkout@v4 - name: 🐳 Login to Docker Hub diff --git a/backend/src/main/java/develup/api/HealthApi.java b/backend/src/main/java/develup/api/HealthApi.java index 179e014b..50d346bd 100644 --- a/backend/src/main/java/develup/api/HealthApi.java +++ b/backend/src/main/java/develup/api/HealthApi.java @@ -10,6 +10,8 @@ public class HealthApi { @GetMapping("/health") public ResponseEntity> health() { + + return ResponseEntity.status(400).body(new ApiResponse<>("up")); } }