Skip to content

Commit dd3407f

Browse files
Deploy: Merge to main
* hotifx : 에러 핸들링 수정 및 무중단 배포 삭제 (리소스 너무 많이 먹음) --------- Co-authored-by: Youjin <114673063+marshmallowing@users.noreply.github.com>
1 parent dc13a9b commit dd3407f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,8 @@ jobs:
107107
export GHCR_USERNAME=${{ github.actor }}
108108
echo $GHCR_TOKEN | docker login ghcr.io -u $GHCR_USERNAME --password-stdin
109109
110-
chmod +x deploy.sh
111-
./deploy.sh
110+
docker-compose -f docker-compose.blue.yml pull
111+
docker-compose -f docker-compose.blue.yml down || true
112+
docker-compose -f docker-compose.blue.yml up -d
113+
114+
docker image prune -a -f

src/main/java/ita/tinybite/domain/auth/service/AuthService.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,8 @@ private String getEmailFromIdToken(String idToken, PlatformType platformType, Lo
224224

225225
return token.getPayload().getEmail();
226226

227-
} catch (GeneralSecurityException | IOException e) {
228-
throw BusinessException.of(AuthErrorCode.GOOGLE_LOGIN_ERROR);
229227
} catch (Exception e) {
230-
throw BusinessException.of(AuthErrorCode.INVALID_TOKEN);
228+
throw new RuntimeException(e);
231229
}
232230
}
233231
case APPLE -> {
@@ -250,10 +248,8 @@ private String getEmailFromIdToken(String idToken, PlatformType platformType, Lo
250248
throw BusinessException.of(AuthErrorCode.NOT_EXISTS_EMAIL);
251249
}
252250
return emailObject.toString();
253-
} catch (JwtException e) {
254-
throw BusinessException.of(AuthErrorCode.INVALID_TOKEN);
255251
} catch (Exception e) {
256-
throw BusinessException.of(AuthErrorCode.APPLE_LOGIN_ERROR);
252+
throw new RuntimeException(e);
257253
}
258254
}
259255
}

0 commit comments

Comments
 (0)