Skip to content

Commit

Permalink
fix: 롤백 시 이미지 이름 출력하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjoon committed Sep 19, 2024
1 parent 733fc8f commit 0706538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/backend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/develup/api/HealthApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class HealthApi {

@GetMapping("/health")
public ResponseEntity<ApiResponse<String>> health() {


return ResponseEntity.status(400).body(new ApiResponse<>("up"));
}
}

0 comments on commit 0706538

Please sign in to comment.