Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI/CD] Prod, Dev server 분리 test #100

Merged
merged 462 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
462 commits
Select commit Hold shift + click to select a range
0fd3165
Merge pull request #45 from AR-TTUBEOG/revert-44-feature/42
sanggae4133 Feb 8, 2024
0cf029a
[Feat] : 사용하지 않은 import문 삭제
sanggae4133 Feb 8, 2024
e005f9f
[Feat] : 사용하지 않은 import문 삭제
sanggae4133 Feb 8, 2024
118b340
[Feat] 카카오 로그인 saveTokenInfo 추가 (#39)
arinming Feb 8, 2024
447efc5
[Feat] 장소 조회 페이징 처리
Jeongmin39 Feb 8, 2024
62e5a6c
Merge remote-tracking branch 'origin/dev' into feature/3
Jeongmin39 Feb 8, 2024
f4306c7
Merge remote-tracking branch 'origin/dev' into feature/34
Jeongmin39 Feb 8, 2024
5115b61
[Docs] add swagger annotation
sanggae4133 Feb 8, 2024
fb9b3e5
[Docs] add swagger annotation2
sanggae4133 Feb 8, 2024
784352f
[Refac] unuse import 삭제
sanggae4133 Feb 8, 2024
2d4020a
Merge pull request #46 from AR-TTUBEOG/feature/17
sanggae4133 Feb 8, 2024
22a730e
Merge branch 'dev' of https://github.com/AR-TTUBEOG/Back-Spring into dev
sanggae4133 Feb 8, 2024
72dc67f
Update gradle.yml
sanggae4133 Feb 8, 2024
bafd8f7
[Chore] Comment 현재 유저 확인 방법 수정
Jeongmin39 Feb 8, 2024
d0188e4
[Fix] 애플 로그인 중복 가입 수정 (#43)
arinming Feb 8, 2024
4fba571
[Fix] 카카오 500에러 수정 (#43)
arinming Feb 8, 2024
d5cd326
Merge branch 'dev' into feature/43
arinming Feb 8, 2024
6a6a2aa
[Feat] 로그아웃 컨트롤러 설정 (#43)
arinming Feb 8, 2024
7d4c85b
[Fix] 댓글 조회 Query Parameters로 수정
Jeongmin39 Feb 8, 2024
14fbe6c
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Feb 8, 2024
62779dd
[Feat] 로그아웃 서비스 설정 (#43)
arinming Feb 8, 2024
5e605bd
[Feat] Comment 조회 구현
Jeongmin39 Jan 21, 2024
80023d2
[Refac] Exception 처리 방식 수정
Jeongmin39 Jan 21, 2024
a4059ba
[Feat] Store 도메인 작성
Jeongmin39 Jan 23, 2024
35a22bb
[Feat] Store 등록 구현
Jeongmin39 Jan 25, 2024
71af358
[Feat] Store 수정 구현
Jeongmin39 Jan 25, 2024
7c1c328
[Feat] Store 삭제 구현
Jeongmin39 Jan 25, 2024
cf5a4c5
[Feat] Store 세부사항 조회 구현
Jeongmin39 Jan 31, 2024
b3ef021
[Feat] Store 좋아요 누르기 API
Jeongmin39 Feb 1, 2024
a135430
[Feat] 회원탈퇴 API 요청시 회원 데이터 DB에서 삭제 (#50)
arinming Feb 8, 2024
0f693b6
[Feat] 72시간 탈퇴 대기 시간 구현 (#50)
arinming Feb 8, 2024
b09c1a6
Chore: Benefit-Game 관계 수정
choeun7 Feb 8, 2024
ded9f48
[Feat] 닉네임 중복 값 설정 isUsed로 구분 (#43)
arinming Feb 8, 2024
d53560b
[Chore] Store 현재 유저 확인 방법 수정
Jeongmin39 Feb 8, 2024
e5f998f
[Feat] DongArea 관현 에러 추가
Jeongmin39 Feb 8, 2024
0ac603d
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Feb 8, 2024
b5f0c39
Jeongmin39 Feb 8, 2024
f0b15cb
Merge pull request #49 from AR-TTUBEOG/feature/43
arinming Feb 8, 2024
0b5288f
Jeongmin39 Feb 8, 2024
d8e4d01
[Feat] implement image domain
sanggae4133 Feb 8, 2024
145cda5
Merge remote-tracking branch 'origin/dev' into feature/32
Jeongmin39 Feb 8, 2024
3d16bb6
[Chore] Likes 현재 유저 확인 방법 수정
Jeongmin39 Feb 8, 2024
b4a6b3e
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Feb 8, 2024
e57a5f6
[Feat] add guestbook
sanggae4133 Feb 8, 2024
d87d8d0
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Feb 8, 2024
87322f6
[Feat] Store 등록 유저 저장
Jeongmin39 Feb 8, 2024
752a031
Merge remote-tracking branch 'origin/feature/43' into feature/50
arinming Feb 9, 2024
c78958f
[Fix] @Data annotation 추가
Jeongmin39 Feb 9, 2024
727f9ea
Merge remote-tracking branch 'origin/dev' into feature/19
Jeongmin39 Feb 9, 2024
e3c72a2
[Feat] 삭제하려는 유저가 매장 등록 유저인지 확인
Jeongmin39 Feb 9, 2024
6d3a0e5
Chore: Benefit-Game 관계 수정
choeun7 Feb 9, 2024
5425943
Chore: build.gradle 원상복구
choeun7 Feb 9, 2024
02b9a47
Chore: Update BenefitService 현재유저 조회
choeun7 Feb 9, 2024
4e9bc6e
Chore: Update BenefitController 현재 유저조회
choeun7 Feb 9, 2024
673c77b
Chore: Update GameController 현재유저 조회
choeun7 Feb 9, 2024
929b5d4
Merge pull request #51 from AR-TTUBEOG/feature/47
sanggae4133 Feb 9, 2024
7e081b2
Chore: Update GameService 현재유저 조회
choeun7 Feb 9, 2024
ace4268
Merge pull request #48 from AR-TTUBEOG/feature/3
choeun7 Feb 10, 2024
5d304c4
[Feat] Store 등록, 수정 시 stars값 설정
Jeongmin39 Feb 10, 2024
0c7bf74
[Refac] 위도, 경도 타입 Double로 변경
Jeongmin39 Feb 10, 2024
25349d1
[Chore] ENUM 타입 대문자 변경
Jeongmin39 Feb 10, 2024
b41806a
Merge remote-tracking branch 'origin/dev' into feature/19
Jeongmin39 Feb 10, 2024
457c611
Merge branch 'dev' into chore/37
choeun7 Feb 10, 2024
c1e3825
Chore: BenefitController 수정
choeun7 Feb 10, 2024
1a164c8
Merge pull request #52 from AR-TTUBEOG/chore/37
choeun7 Feb 10, 2024
6a9af1e
[Feat] Store 이미지 저장 구현
Jeongmin39 Feb 10, 2024
e22e15e
Merge remote-tracking branch 'origin/dev' into feature/19
Jeongmin39 Feb 10, 2024
910e1bc
[Remove] LikesController 삭제
Jeongmin39 Feb 10, 2024
bdad04d
Merge remote-tracking branch 'origin/dev' into feature/34
Jeongmin39 Feb 10, 2024
cae72aa
Merge branch 'feature/19' into feature/34
Jeongmin39 Feb 10, 2024
0be455d
[Refac] 위도, 경도 타입 Double로 변경
Jeongmin39 Feb 10, 2024
0901dcb
Merge branch 'dev' into feature/50
arinming Feb 11, 2024
9c26016
[Feat] 회원 탈퇴시 회원의 status INACTIVE로 변경 (#50)
arinming Feb 11, 2024
3beb2da
[Chore] 생성자에 @Builder 어노테이션 추가
Jeongmin39 Feb 12, 2024
323441b
[Chore] import문 수정
Jeongmin39 Feb 12, 2024
616d611
[Feat] 닉네임 변경 여부를 나타내는 필드 추가 (#56)
arinming Feb 12, 2024
61181ee
[Feat] 탈퇴 회원으로 72시간 내 로그인시 ACTIVE로 구현-임시 (#56)
arinming Feb 12, 2024
42122bd
[Chore] Comment 현재 유저 확인 방법 수정
Jeongmin39 Feb 8, 2024
27f5457
[Fix] 댓글 조회 Query Parameters로 수정
Jeongmin39 Feb 8, 2024
84629a0
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Feb 8, 2024
7e91f2a
[Chore] Place 현재 유저 확인 방법 수정
Jeongmin39 Feb 12, 2024
bfb3952
[Feat] 닉네임 변경 여부 확인 코드 추가 (#56)
arinming Feb 13, 2024
6826308
[Feat] 닉네임 중복 확인과 닉네임 설정 로직 분리 (#56)
arinming Feb 13, 2024
0d31f41
[Chore] 오타 수정 및 주석 추가
Jeongmin39 Feb 13, 2024
8b42918
[Feat] 매장 삭제 시 관련 엔티티 삭제
Jeongmin39 Feb 13, 2024
ec2ff4e
[Feat] 매장 세부사항 조회 내용 추가 및 수정
Jeongmin39 Feb 13, 2024
412f0cf
[Feat] 닉네임 1회 변경시 nicknameChange 값 변경 (#56)
arinming Feb 13, 2024
82d77cf
[Feat] 매장 삭제 시 관련된 MemberBenefit 삭제
Jeongmin39 Feb 13, 2024
21240d7
Merge pull request #53 from AR-TTUBEOG/feature/19
Jeongmin39 Feb 13, 2024
6706878
Merge remote-tracking branch 'origin/dev' into feature/32
Jeongmin39 Feb 13, 2024
4d3e9f0
[Feat] 닉네임을 1회 변경한 멤버는 닉네임 변경 불가하도록 구현 (#56)
arinming Feb 13, 2024
2cdc335
[Chore] 멤버 탈퇴 임시 주석처리 (#50)
arinming Feb 13, 2024
8ac5b4b
[Refac] Likes 리팩토링
Jeongmin39 Feb 1, 2024
e64db8f
[Feat] 매장 좋아요 누르기 API
Jeongmin39 Feb 13, 2024
d402913
Chore: Likes 멤버 조회 수정
choeun7 Feb 13, 2024
d9f9fac
Chore: Likes 멤버조회 수정
choeun7 Feb 13, 2024
edfa154
Chore: Likes 유저 조회 취소
choeun7 Feb 13, 2024
7a13643
Chore: Likes 유저 조회 수정
choeun7 Feb 13, 2024
0bd6361
Chore: Likes 멤버조회 수정
choeun7 Feb 13, 2024
a675eed
Merge branch 'dev' into feature/57
Jeongmin39 Feb 13, 2024
40d7e5e
Merge pull request #58 from AR-TTUBEOG/feature/57
Jeongmin39 Feb 13, 2024
d6e6aac
Merge pull request #55 from AR-TTUBEOG/feature/50
arinming Feb 14, 2024
5c6a256
Merge branch 'dev' into feature/56
arinming Feb 14, 2024
01aee09
[Chore] merge with feature/47-2
sanggae4133 Feb 14, 2024
5510dff
[Feat] GuestBook domain 구현 및 적용
sanggae4133 Feb 15, 2024
aa9c3a5
[Feat] add findGuestBookByPlaceId method to GuestBook Service
sanggae4133 Feb 15, 2024
533d516
[Feat] add Road Domain Files
sanggae4133 Feb 15, 2024
7834d73
[Feat] implement Road Entity
sanggae4133 Feb 15, 2024
2cbffd6
[Chore] edit Swagger Http Response code
sanggae4133 Feb 15, 2024
08312b6
[Chore] GuestBook Service 주석 추가
sanggae4133 Feb 15, 2024
9bcd8f0
Merge branch 'feature/47' into feature/18
sanggae4133 Feb 15, 2024
63c23fb
[Chore] guestbookRepository 수정 및 Store/Spot Service 맞춰 수정
sanggae4133 Feb 15, 2024
d1ece64
Merge branch 'feature/47' into feature/18
sanggae4133 Feb 15, 2024
8d9ebf2
Merge pull request #59 from AR-TTUBEOG/feature/56
arinming Feb 15, 2024
17e6100
[Feat] Benefit-Store 연결
choeun7 Feb 15, 2024
deff1d9
[Refac] 평점 Update 오류 수정 및 GuestBook Controller 분리
sanggae4133 Feb 15, 2024
bcbb5d1
[Chore] 미사용 import문 제거
sanggae4133 Feb 15, 2024
10bd891
[Feat] 장소 검색 구현
Jeongmin39 Feb 15, 2024
1ea8317
Merge remote-tracking branch 'origin/dev' into feature/34
Jeongmin39 Feb 15, 2024
dc932d6
[Refactor] guestbook 리펙토링
sanggae4133 Feb 15, 2024
881a0a3
Merge pull request #61 from AR-TTUBEOG/feature/47
sanggae4133 Feb 15, 2024
04d4388
[Feat] 대표 이미지 설정
Jeongmin39 Feb 15, 2024
92084d8
[Feat] storeId로 게임조회 api
choeun7 Feb 15, 2024
9d62993
[Chore] TimeLimit 자료형 수정
choeun7 Feb 15, 2024
0accc88
[Feat] RoadController 구현
sanggae4133 Feb 15, 2024
5e2bac9
[Chore] unuse import 삭제
sanggae4133 Feb 15, 2024
3b65ec5
[Feat] createGuestBook service 구현
sanggae4133 Feb 15, 2024
5e61ef9
Merge remote-tracking branch 'origin/dev' into feature/34
Jeongmin39 Feb 16, 2024
2d9babb
[Feat] Game 조회 시 Benefit까지 같이 조회
choeun7 Feb 16, 2024
b780f46
[Chore] 게임조회 sweagger 설명 수정
choeun7 Feb 16, 2024
ee6e338
[Chore] Game 생성, 수정은 Store를 만든 유저만 가능하게 수정
choeun7 Feb 16, 2024
8937ffe
[Feat] road domain 구현
sanggae4133 Feb 16, 2024
1c884af
[Chore] Swagger Annotation 문서화
sanggae4133 Feb 16, 2024
4817300
[Chore] 게임 조회 HTTP 메소드 변경
choeun7 Feb 16, 2024
cbfdacd
[Fix] 애플 로그인 isRegistered 로직 수정 (#63)
arinming Feb 16, 2024
36de6ca
[Chore] Conflict 해결
sanggae4133 Feb 16, 2024
bf27cdd
[Chore] 미사용 디렉토리 삭제
sanggae4133 Feb 16, 2024
a600e2a
[Fix] 애플 로그인 nicknameChange 필드 로직 수정 (#63)
arinming Feb 16, 2024
e587214
[Feat] Road, RoadCoordinate Entity 수정
sanggae4133 Feb 16, 2024
921b967
[Chore] Swagger Annotation 수정
sanggae4133 Feb 16, 2024
50994fb
[Feat] 닉네임 업데이트시 nicknameChange 변경 (#63)
arinming Feb 16, 2024
438ac56
[Refac] GuestBook Service/Repository 수정
sanggae4133 Feb 16, 2024
bc02cce
[Feat] RoadRepository 수정
sanggae4133 Feb 16, 2024
17318fc
Merge pull request #65 from AR-TTUBEOG/feature/18
sanggae4133 Feb 16, 2024
abce3c5
[Fix] TimeLimit 타입 LocalTime으로 다시 수정
choeun7 Feb 16, 2024
93df0db
[Chore] repository 메서드명 변경
Jeongmin39 Feb 16, 2024
a6cdbe4
[Feat] DongArea 이름 컬럼 추가
Jeongmin39 Feb 16, 2024
876f3a3
[Chore] dongAreaId -> dongName으로 수정
Jeongmin39 Feb 16, 2024
197523e
[Remove] PlaceRepository 삭제
Jeongmin39 Feb 16, 2024
04fe36b
Merge remote-tracking branch 'origin/dev' into feature/34
Jeongmin39 Feb 16, 2024
370649f
[Refac] GuestBookRepository 수정에 따른 코드 수정
Jeongmin39 Feb 16, 2024
895a180
[Refac] Likes Service/Repository 수정
Jeongmin39 Feb 16, 2024
cfa0e54
[Refac] LikesRepository 수정에 따른 코드 수정
Jeongmin39 Feb 16, 2024
47a8275
[Refactor] 게임 수정 시 storeID 요청 취소
choeun7 Feb 16, 2024
6066093
Merge pull request #64 from AR-TTUBEOG/feat/62
choeun7 Feb 16, 2024
aca4ed0
Merge remote-tracking branch 'origin/dev' into feature/34
Jeongmin39 Feb 16, 2024
7231e04
[Feat] Spot 좋아요 수 확인 메소드 추가
Jeongmin39 Feb 16, 2024
5863fc7
[Feat] 매장 조회 시 게임 존재 여부 추가
Jeongmin39 Feb 16, 2024
f336a6e
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Feb 16, 2024
82b3e0d
Merge pull request #66 from AR-TTUBEOG/fix/63
arinming Feb 17, 2024
66c02ae
Merge pull request #67 from AR-TTUBEOG/feature/34
sanggae4133 Feb 17, 2024
c7eaede
[Feat] 닉네임 2번까지 설정 가능하도록 변경 (#68)
arinming Feb 17, 2024
f257677
[Feat] 내 장소 조회 Response Dto 생성 (#68)
arinming Feb 17, 2024
5df95a7
[Refac] Spot 엔티티 dongArea String으로 수정
sanggae4133 Feb 17, 2024
5353858
[Update] Store Entity 수정
sanggae4133 Feb 17, 2024
dc983ce
Merge branch 'dev' into update/69
sanggae4133 Feb 17, 2024
1417d2c
[Update] PlaceService 수정
sanggae4133 Feb 17, 2024
2f2fa9e
Merge pull request #70 from AR-TTUBEOG/update/69
sanggae4133 Feb 17, 2024
62bf50c
[Feat] 내 산책로 조회 API 구현 (#68)
arinming Feb 17, 2024
210874a
[Feat] 내 매장 조회 API 구현 (#68)
arinming Feb 17, 2024
eb4056e
[Fix] startIndex가 리스트 크기를 초과할 경우 발생하는 예외 수정
Jeongmin39 Feb 17, 2024
1c23e1f
Merge branch 'dev' into feature/68
arinming Feb 17, 2024
4518e8c
Merge remote-tracking branch 'origin/feature/34' into feature/73
arinming Feb 17, 2024
8ce8551
Merge pull request #72 from AR-TTUBEOG/feature/34
arinming Feb 17, 2024
3805e5c
Merge pull request #71 from AR-TTUBEOG/feature/68
arinming Feb 17, 2024
df619b9
Merge branch 'dev' into feature/73
arinming Feb 17, 2024
f8724f1
[Feat] 내 매장 조회 API 페이징 처리 (#73)
arinming Feb 17, 2024
95a91de
[Feat] 내 산책 스팟 조회 API 페이징 처리 (#73)
arinming Feb 17, 2024
e41295c
[Docs] edit gradle.yml
sanggae4133 Feb 17, 2024
57d4cd0
Merge branch 'dev' of https://github.com/AR-TTUBEOG/Back-Spring into dev
sanggae4133 Feb 17, 2024
8cbed1f
[Docs] Update gradle.yml
sanggae4133 Feb 17, 2024
7921258
[Refac] 위도, 경도 타입 Double로 변경
Jeongmin39 Feb 17, 2024
b891a16
[Chore] edit class path
sanggae4133 Feb 17, 2024
13b8189
Merge branch 'dev' of https://github.com/AR-TTUBEOG/Back-Spring into dev
sanggae4133 Feb 17, 2024
a3d416a
Update gradle.yml
sanggae4133 Feb 17, 2024
1d8394a
Update gradle.yml
sanggae4133 Feb 17, 2024
4cbc5eb
[Refac] Spot 위도, 경도 타입 Double로 변경
Jeongmin39 Feb 17, 2024
1908c23
[Chore] GuestBook에 memberName 추가 응답
choeun7 Feb 18, 2024
51c11b1
[Chore] 스팟 조회 api 수정
choeun7 Feb 18, 2024
c1c4952
[Chore] 산책스팟 좋아요 누르는 api 수정
choeun7 Feb 18, 2024
c02f23f
[Chore] swagger yml 복구
choeun7 Feb 18, 2024
9db9ce1
[Feat] Image domain s3로 변경
sanggae4133 Feb 18, 2024
b8d8f28
[refac] 이미지 관련 기능 수정
sanggae4133 Feb 18, 2024
6940213
[Chore] 위도경도 자료형 수정
choeun7 Feb 18, 2024
84de22f
Merge pull request #78 from AR-TTUBEOG/feat/77
choeun7 Feb 18, 2024
e1f20cb
Merge branch 'dev' into feature/76-2
sanggae4133 Feb 18, 2024
d654ed6
[Chore] 주석 삭제
sanggae4133 Feb 18, 2024
bfe6d2e
[Fix] dong_area 형변환 에러 해결
choeun7 Feb 18, 2024
c31e179
Merge pull request #79 from AR-TTUBEOG/feature/76-2
choeun7 Feb 18, 2024
18b16f7
[Chore] spot 조회 response 수정
choeun7 Feb 18, 2024
a98d231
[Chore] Road 엔티티 스웨거 설명 추가
choeun7 Feb 18, 2024
ec697c2
[Chore] Image 엔티티 스웨거 설명 추가
choeun7 Feb 18, 2024
8955655
Merge pull request #81 from AR-TTUBEOG/feat/80
choeun7 Feb 18, 2024
e7a7646
Merge pull request #74 from AR-TTUBEOG/feature/73
choeun7 Feb 18, 2024
c3a153d
Merge remote-tracking branch 'origin/dev' into feature/75
Jeongmin39 Feb 18, 2024
7c13da3
[Chore] spot 생성 시 image 받아오기 취소
choeun7 Feb 18, 2024
34b3998
[Chore] spot 생성 시 image 받아오기 취소
choeun7 Feb 18, 2024
e12cd27
[Chore] Exception 메시지 수정
Jeongmin39 Feb 18, 2024
de64185
[Feat] 매장 삭제 시 관련된 경로, 좌표 삭제
Jeongmin39 Feb 18, 2024
67bf974
Merge pull request #83 from AR-TTUBEOG/feature/82
Jeongmin39 Feb 18, 2024
d9848dd
[Chore] ImageController 오타 수정
Jeongmin39 Feb 18, 2024
59fe238
[Chore] ImageService 오타 수정
Jeongmin39 Feb 18, 2024
566237d
[Fix] 방명록 생성 에러 수정
Jeongmin39 Feb 19, 2024
1e611fe
[Refactor] 응답형식 리팩토링
choeun7 Mar 4, 2024
eb76cc6
Merge remote-tracking branch 'origin/dev' into refactor/89
Jeongmin39 Mar 6, 2024
62d6567
[Docs] Swagger 내용 보충
Jeongmin39 Mar 6, 2024
d68d231
Merge pull request #88 from AR-TTUBEOG/refactor/87
choeun7 Mar 10, 2024
f2ee9fa
[Refactor] 공통응답 클래스명 수정
choeun7 Mar 10, 2024
b98b917
[Refactor] 응답 호출 방법 수정
choeun7 Mar 10, 2024
7d40f65
[Refactor] 공통 응답 호출방법 수정
choeun7 Mar 11, 2024
ed27ded
Merge remote-tracking branch 'origin/dev' into refactor/89
Jeongmin39 Mar 16, 2024
0258f8b
[Remove] Tag 관련 파일 제거
Jeongmin39 Mar 16, 2024
1304e3f
[Remove] Sido 관련 파일 제거
Jeongmin39 Mar 16, 2024
9711683
[Remove] Sigg 관련 파일 제거
Jeongmin39 Mar 16, 2024
2b78cb2
[Remove] AreaService, AreaController 제거
Jeongmin39 Mar 16, 2024
57d564f
[Chore] 변수명 오타 수정
Jeongmin39 Mar 16, 2024
84bebf3
[Hotfix] spot Controller findBySpotId API endpoint 수정
sanggae4133 Mar 20, 2024
bf73fcd
Merge pull request #95 from AR-TTUBEOG/hotfix/94
sanggae4133 Mar 20, 2024
ea12807
Merge pull request #92 from AR-TTUBEOG/refactor/87
choeun7 Mar 22, 2024
87871de
[Chore] 변수명 오타 수정
Jeongmin39 Mar 22, 2024
1af00b2
[Remove] 미사용 변수 삭제
Jeongmin39 Mar 22, 2024
f1932f4
[Chore] API 엔드포인트 통일
Jeongmin39 Mar 22, 2024
3841314
[Chore] API 엔드포인트 통일
Jeongmin39 Mar 22, 2024
933c0b0
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Mar 22, 2024
f509153
image 조회 endpoint 수정
choeun7 Mar 22, 2024
41d0da2
[Remove] 미사용 변수 삭제
Jeongmin39 Mar 22, 2024
3891103
[Chore] 불필요한 세미콜론 삭제
Jeongmin39 Mar 22, 2024
8d5454a
[Chore] 불필요한 세미콜론 삭제
Jeongmin39 Mar 22, 2024
70dc8bc
[Chore] API 엔드포인트 통일
Jeongmin39 Mar 22, 2024
02148b1
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Mar 22, 2024
0fe069d
[Remove] 미사용 변수 삭제
Jeongmin39 Mar 22, 2024
765a54b
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Mar 22, 2024
322e128
[Chore] 사용하지 않는 import문 삭제
Jeongmin39 Mar 22, 2024
8825127
[Fix] ImageController Endpoint 에러 수정
choeun7 Mar 22, 2024
554624c
[Fix] RequestParam -> PathVariable
choeun7 Mar 22, 2024
fb7b896
Merge branch 'dev' into remove/93
Jeongmin39 Mar 22, 2024
7585f3e
Merge pull request #97 from AR-TTUBEOG/fix/96
choeun7 Mar 22, 2024
b12d55e
Merge pull request #98 from AR-TTUBEOG/remove/93
choeun7 Mar 22, 2024
fe2bb49
Create gradle-prod.yml
sanggae4133 May 6, 2024
c3f1c06
Update gradle.yml
sanggae4133 May 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions .github/workflows/gradle-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Java CI with Gradle - Product

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
AWS_REGION: ap-northeast-2
S3_BUCKET_NAME: s3-ttubeog
CODE_DEPLOY_APPLICATION_NAME: ttubeog-codedeploy
CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: ttubeog-deploy-group


permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-22.04

steps:
# 작업 엑세스 가능하게 $GITHUB_WORKSPACE에서 저장소를 체크아웃
- name: Checkout branch
uses: actions/checkout@v3

# java 버전 세팅
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'

# git ignore한 yml 파일들 github secret에서 복사해 오기
- name: Copy secret
env:
OCCUPY_SECRET: ${{ secrets.OCCUPY_SECRET_PROD }}
OCCUPY_LOGBACK_SECRET: ${{ secrets.OCCUPY_LOGBACK_SECRET }}

OCCUPY_SECRET_DIR: ./src/main/resources
OCCUPY_LOGBACK_SECRET_DIR: ./src/main/resources

OCCUPY_SECRET_DIR_FILE_NAME: application.yml
OCCUPY_LOGBACK_SECRET_DIR_FILE_NAME: logback-test.xml
run: |
touch $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME
touch $OCCUPY_LOGBACK_SECRET_DIR/$OCCUPY_LOGBACK_SECRET_DIR_FILE_NAME

echo "$OCCUPY_SECRET" > $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME
echo "$OCCUPY_LOGBACK_SECRET" > $OCCUPY_LOGBACK_SECRET_DIR/$OCCUPY_LOGBACK_SECRET_DIR_FILE_NAME

# gradlew 실행 권한 부여
- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew
shell: bash

# Build -> jar 파일 생성
- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash

- name: Upload Build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: |
build/libs/*.jar

- name: Start redis-server
uses: appleboy/scp-action@master
with:
key: ${{ secrets.EC2_KEY_PROD }}
host: ${{ secrets.EC2_HOST_PROD }}
username: ${{ secrets.EC2_USER_PROD }}
target: /home/ubuntu/app/spring_source
source: .
command: sudo systemctl start redis-server




deploy:
name: CD with SSH
needs: build
runs-on: ubuntu-22.04

steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts

# JAR 파일을 EC2에 배포하는 step
- name: SCP JAR to EC2
uses: appleboy/scp-action@master
with:
key: ${{ secrets.EC2_KEY_PROD }}
host: ${{ secrets.EC2_HOST_PROD }}
username: ${{ secrets.EC2_USER_PROD }}
source: "*.jar"
target: "/home/ubuntu/app"

# EC2에 SSH로 배포 커맨드를 입력하는 step
- name: Deploy SSH
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.EC2_KEY_PROD }}
host: ${{ secrets.EC2_HOST_PROD }}
username: ${{ secrets.EC2_USER_PROD }}
# 기존 실행 중인 서버 종료 후 jar 파일 실행
script: |
sudo fuser -k -n tcp 8080
sleep 15
sudo nohup java -jar /home/ubuntu/app/*.jar > ./nohup.out 2>&1 &
116 changes: 116 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Java CI with Gradle

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

env:
AWS_REGION: ap-northeast-2
S3_BUCKET_NAME: s3-ttubeog
CODE_DEPLOY_APPLICATION_NAME: ttubeog-codedeploy
CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: ttubeog-deploy-group


permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-22.04

steps:
# 작업 엑세스 가능하게 $GITHUB_WORKSPACE에서 저장소를 체크아웃
- name: Checkout branch
uses: actions/checkout@v3

# java 버전 세팅
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'

# git ignore한 yml 파일들 github secret에서 복사해 오기
- name: Copy secret
env:
OCCUPY_SECRET: ${{ secrets.OCCUPY_SECRET_DEV }}
OCCUPY_LOGBACK_SECRET: ${{ secrets.OCCUPY_LOGBACK_SECRET }}

OCCUPY_SECRET_DIR: ./src/main/resources
OCCUPY_LOGBACK_SECRET_DIR: ./src/main/resources

OCCUPY_SECRET_DIR_FILE_NAME: application.yml
OCCUPY_LOGBACK_SECRET_DIR_FILE_NAME: logback-test.xml
run: |
touch $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME
touch $OCCUPY_LOGBACK_SECRET_DIR/$OCCUPY_LOGBACK_SECRET_DIR_FILE_NAME

echo "$OCCUPY_SECRET" > $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME
echo "$OCCUPY_LOGBACK_SECRET" > $OCCUPY_LOGBACK_SECRET_DIR/$OCCUPY_LOGBACK_SECRET_DIR_FILE_NAME

# gradlew 실행 권한 부여
- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew
shell: bash

# Build -> jar 파일 생성
- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash

- name: Upload Build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: |
build/libs/*.jar

- name: Start redis-server
uses: appleboy/scp-action@master
with:
key: ${{ secrets.EC2_KEY_DEV }}
host: ${{ secrets.EC2_HOST_DEV }}
username: ${{ secrets.EC2_USER_DEV }}
target: /home/ubuntu/app/spring_source
source: .
command: sudo systemctl start redis-server




deploy:
name: CD with SSH
needs: build
runs-on: ubuntu-22.04

steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts

# JAR 파일을 EC2에 배포하는 step
- name: SCP JAR to EC2
uses: appleboy/scp-action@master
with:
key: ${{ secrets.EC2_KEY_DEV }}
host: ${{ secrets.EC2_HOST_DEV }}
username: ${{ secrets.EC2_USER_DEV }}
source: "*.jar"
target: "/home/ubuntu/app"

# EC2에 SSH로 배포 커맨드를 입력하는 step
- name: Deploy SSH
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.EC2_KEY_DEV }}
host: ${{ secrets.EC2_HOST_DEV }}
username: ${{ secrets.EC2_USER_DEV }}
# 기존 실행 중인 서버 종료 후 jar 파일 실행
script: |
sudo fuser -k -n tcp 8080
sleep 15
sudo nohup java -jar /home/ubuntu/app/*.jar > ./nohup.out 2>&1 &
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ out/
.LSOverride

### Project security ###
**/resources/
**/resources/application.yml
**/resources/database/
**/resources/oauth2/
**/resources/logback.xml
**/applicatioin.yml
**/application-database.yml
**/application-oauth2.yml
**/logback.yml
Dockerfile
docker-compose.yaml
deploy_*.sh
Expand Down
27 changes: 27 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# appspec.yml

version: 0.0
os: linux

files:
- source: /
destination: /home/ubuntu/app # (ec2)인스턴스에서 파일이 저장될 위치
overwrite: true
file_exists_behavior: OVERWRITE

permissions:
- object: /
pattern: "**"
owner: ubuntu
group: ubuntu
mode: 775

hooks:
AfterInstall:
- location: scripts/stop.sh
timeout: 60
runas: ubuntu
ApplicationStart:
- location: scripts/start.sh
timeout: 600
runas: ubuntu
38 changes: 37 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,33 @@ sourceCompatibility = '17'

repositories {
mavenCentral()

// discord log back
maven { url 'https://jitpack.io' }
}

dependencyManagement {

imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2022.0.5"
}
}


dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'


implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.2'

implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.3.0'
implementation 'org.jetbrains:annotations:24.0.0'
testImplementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-api', version: '2.3.0'

implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
Expand All @@ -30,12 +47,31 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"

runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
runtimeOnly 'com.mysql:mysql-connector-j'

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'

// discord log back
implementation 'com.github.napstr:logback-discord-appender:1.0.0'

implementation platform("org.springframework.cloud:spring-cloud-dependencies:2022.0.5")
implementation "org.springframework.cloud:spring-cloud-starter-openfeign"

if (System.getProperty("os.name") == "Mac OS X" && System.getProperty("os.arch") == "aarch64") {
runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.1.94.Final:osx-aarch_64")
}

implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'

}



tasks.named('test') {
useJUnitPlatform()
}

jar {
enabled = false
}
31 changes: 31 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

REPOSITORY=/home/ubuntu/app
cd $REPOSITORY

# 1) 애플리케이션이 구동중인지 확인하기 위한 애플리케이션 이름, jar 파일의 이름
APP_NAME=RecordOfMemory
JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | tail -n 1) # `이 아닌 ' 사용해야함...
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

# 2) 현재 인스턴스에서 애플리케이션이 구동중인지 확인, 구동중이면 종료
CURRENT_PID=$(pgrep -f $APP_NAME)

if [ -z $CURRENT_PID ]
then
echo "> 현재 구동중인 애플리케이션이 없으므로 종료하지 않습니다."
else
echo "> kill -15 $CURRENT_PID"
sudo kill -15 $CURRENT_PID
sleep 5
fi

# 3) app 디렉토리 권한 수정
cd /home/ubuntu
sudo chmod 775 app
sudo chown ubuntu app

# 4) jar 파일을 배포
echo "> $JAR_PATH 배포"
# nohup java -jar $JAR_PATH &
nohup java -jar $JAR_PATH > /dev/null 2>&1 &
Loading
Loading