Skip to content

Commit

Permalink
Merge pull request #708 from woowacourse-teams/fix/#706
Browse files Browse the repository at this point in the history
테이블명 수정
  • Loading branch information
ksk0605 authored Oct 23, 2024
2 parents 140aebf + e3eccb0 commit 222247b
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/be-rolling-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Rolling Deployment

on:
push:
branches:
- chore/#682

jobs:
deploy-prod1:
name: Deploy to Prod1 Instance
runs-on: runner-prod1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Prod1 instance deploy script
run: |
cd ~/deploy && ./deploy.sh
check-prod1:
name: Check Prod1 Instance
runs-on: runner-prod1
needs: deploy-prod1

steps:
- name: Wait for Prod1 instance to be ready
run: sleep 30

- name: Health check for Prod1 instance
run: |
RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/health)
if [ $RESPONSE -ne 200 ]; then
echo "Prod1 instance deployment failed."
exit 1
fi
echo "Prod1 instance is healthy."
deploy-prod2:
name: Deploy to Prod2 Instance
runs-on: runner-prod2
needs: check-prod1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Prod2 instance deploy script
run: |
cd ~/deploy && ./deploy.sh
check-prod2:
name: Check Prod2 Instance
runs-on: runner-prod2
needs: deploy-prod2

steps:
- name: Wait for Prod2 instance to be ready
run: sleep 30

- name: Health check for Prod2 instance
run: |
RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/health)
if [ $RESPONSE -ne 200 ]; then
echo "Prod2 instance deployment failed."
exit 1
fi
echo "Prod2 instance is healthy."
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -18,6 +19,7 @@
@Entity
@Getter
@NoArgsConstructor
@Table(name = "darakbang")
public class Darakbang {

@Id
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/mouda/backend/member/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -20,6 +21,7 @@
@Entity
@Getter
@NoArgsConstructor
@Table(name = "member")
public class Member {

@Id
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/mouda/backend/moim/domain/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -19,6 +20,7 @@
import mouda.backend.moim.exception.CommentException;

@Entity
@Table(name = "comment")
@Getter
@NoArgsConstructor
public class Comment {
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/mouda/backend/moim/domain/Moim.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import mouda.backend.moim.exception.MoimErrorMessage;
import mouda.backend.moim.exception.MoimException;

@Entity
@Table(name = "moim")
@Getter
@NoArgsConstructor
public class Moim {
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/mouda/backend/moim/domain/Zzim.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import mouda.backend.darakbangmember.domain.DarakbangMember;

@Entity
@Table(name = "zzim")
@Getter
@NoArgsConstructor
public class Zzim {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -17,6 +18,7 @@

@Entity
@Getter
@Table(name = "interest")
@NoArgsConstructor
public class Interest {

Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/mouda/backend/please/domain/Please.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -15,6 +16,7 @@

@Entity
@Getter
@Table(name = "please")
@NoArgsConstructor
public class Please {

Expand Down

0 comments on commit 222247b

Please sign in to comment.