Skip to content

Commit

Permalink
hotfix: 서버 마이그레이션 오류 해결 #383 (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
linirini authored and Ho-Tea committed Sep 23, 2024
1 parent cdfb9e7 commit 15973c0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/backend-ci-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Backend CI/CD dev

on:
push:
paths: 'backend/**'
branches: [ "develop-be", "develop" ]

jobs:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/backend-ci-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Backend CI/CD prod

on:
push:
paths: ['backend/**', '.github/**']
branches: ["main"]

jobs:
Expand Down Expand Up @@ -51,6 +52,11 @@ jobs:
cd:
needs: ci
runs-on: [self-hosted, prod]

strategy:
matrix:
runner: [ prod-a, prod-b, prod ]

steps:
- name: Pull Docker image
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.staccato.util.health;

import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/health")
public class HealthController {
@GetMapping
public ResponseEntity<Void> checkHealth() {
return ResponseEntity.ok().build();
}
}

0 comments on commit 15973c0

Please sign in to comment.