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

[merge] develop into main #503

Merged
merged 41 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
dc162c8
refactor: #487 랭크 스케줄러 수정
Hju95 Mar 27, 2024
417bb0f
Infra: application.yml 에서 management 부분 수정 및 추가
Hju95 Mar 27, 2024
08f32ea
refactor: Store 반영
Hju95 Mar 27, 2024
53b4643
refactor: Store 반영 - 메서드명 수정
Hju95 Mar 27, 2024
5b6a25e
refactor: Store 반영 - 메서드명 내부와 동일하게 수정
Hju95 Mar 27, 2024
d390f1f
Merge pull request #490 from Kernel360/Infra/#489-http_server_requests
Hju95 Mar 27, 2024
adaf51c
Merge pull request #488 from Kernel360/feat/#487-rank_no_change_modify
Hju95 Mar 27, 2024
3fe3487
'' 추가
Hju95 Mar 27, 2024
ed8e6b5
Merge pull request #491 from Kernel360/Infra/#489-http_server_requests
Hju95 Mar 27, 2024
bd9381c
refactor: chatGPT가 답변을 달 때도 질문 작성자에게 알림이 가게 수정
mooncw Mar 27, 2024
2f3a9d9
test: chatGPT가 답변을 달 때도 질문 작성자에게 알림이 가게 수정함에 따른 테스트 코드 수정
mooncw Mar 27, 2024
174ac20
refactor: 채팅 테스트와 관련된 로직 삭제
mooncw Mar 28, 2024
f9ad8dd
Update README.md
mooncw Apr 1, 2024
059e647
Merge pull request #496 from Kernel360/mooncw-patch-1
mooncw Apr 2, 2024
d038861
refactor: 로그인 api 성능 1차 개선
mooncw Apr 2, 2024
31f2a09
refactor: 로그인 api 성능 2차 개선
mooncw Apr 2, 2024
753bac7
refactor: TokenProvider의 getAuthentication의 없어도 무방한 코드 제거
mooncw Apr 2, 2024
a7d35f9
refactor: TokenProvider의 getAuthentication의 없어도 무방한 코드 제거
mooncw Apr 2, 2024
32232d0
test: 로그인 api 리팩토링에 따른 테스트 코드 수정
mooncw Apr 2, 2024
aba9395
refactor: 수정이 덜된 부분 확인되어 마저 수정
mooncw Apr 2, 2024
4ba5ecc
chore: 안쓰는 어노테이션 삭제 및 import 정리
mooncw Apr 2, 2024
eb94736
프로젝트 리드미 2차 수정
mooncw Apr 3, 2024
77581f9
Merge pull request #493 from Kernel360/refactor/#492-chatgpt-answer-a…
Hju95 Apr 4, 2024
1c4f4e9
Merge pull request #495 from Kernel360/refactor/#494-test-chat-featur…
Hju95 Apr 4, 2024
d49ddf0
Merge pull request #498 from Kernel360/refactor/#497-login-refactor
Hju95 Apr 4, 2024
63e9f0a
프로젝트 리드미 수정 2차 리뷰 반영
mooncw Apr 4, 2024
1b600e0
프로젝트 리드미 수정 2차 리뷰 반영 2
mooncw Apr 4, 2024
b189302
feat: JasyptConfig 추가
mooncw Apr 5, 2024
681d9b9
refactor: 서비스 실행에 사용하는 기존 application.yml 분리
mooncw Apr 5, 2024
4c22f3c
refactor: 서비스 실행에 필요없는 application.yml 삭제
mooncw Apr 5, 2024
c8f1b02
refactor: test에 사용하는 application.yml 수정 및 test에 필요한 TestJasyptConfig …
mooncw Apr 5, 2024
46b65ff
refactor: cd-dev 삭제 및 ci 수정
mooncw Apr 5, 2024
1bafe70
refactor: ci에서 깃허브 액션 환경에서 테스트할 때 필요한 datahub를 docker-compose를 이용하여 생…
mooncw Apr 5, 2024
06367ad
refactor: cd 수정 및 오타 수정
mooncw Apr 5, 2024
7d6072f
refactor: kernelsquare 쪽으로 redirect-uri하는 부분은 암호화하고 OAuth2LoginSucces…
mooncw Apr 5, 2024
33a7f43
chore: ci 오타 수정
mooncw Apr 5, 2024
f0e3117
Merge pull request #499 from Kernel360/mooncw-patch-1
mooncw Apr 5, 2024
d3390d3
리드미 3차 - nginx 추가
Hju95 Apr 5, 2024
be9c281
Merge pull request #502 from Kernel360/Hju95-patch-1
mooncw Apr 5, 2024
4795ec0
chore: cr 삭제
mooncw Apr 5, 2024
d45974a
Merge pull request #501 from Kernel360/refactor/#500-dev-server-remove
mooncw Apr 5, 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
104 changes: 0 additions & 104 deletions .github/workflows/cd-dev.yml

This file was deleted.

53 changes: 7 additions & 46 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,68 +14,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# - run: touch ./domain-mysql/src/main/resources/application.yml
- run: echo "${{ secrets.APPLICATION }}" > ./domain-mysql/src/main/resources/application.yml
- uses: actions/upload-artifact@v2
with:
name: application.yml
path: ./domain-mysql/src/main/resources/application.yml

- run: echo "${{ secrets.MEMBER_APPLICATION }}" > ./member-api/src/main/resources/application.yml
- uses: actions/upload-artifact@v2
- name: Checkout
uses: actions/checkout@v3
with:
name: application.yml
path: ./member-api/src/main/resources/application.yml
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'

# - name: Set up member-api application.yml
# uses: microsoft/variable-substitution@v1
# with:
# files: ./member-api/src/main/resources/application.yml
# env:
# spring.datasource.url: ${{ secrets.LOCAL_DB_URL }}
# spring.datasource.username: ${{ secrets.LOCAL_DB_HOST }}
# spring.datasource.password: ${{ secrets.LOCAL_DB_PASSWORD }}
# spring.redis.host: ${{ secrets.REDIS_HOST }}
# spring.redis.port: ${{ secrets.REDIS_PORT }}
# spring.data.mongodb.uri: ${{ secrets.MONGO_URI }}
# spring.security.jwt.secret: ${{ secrets.JWT_SECRET_KEY }}
# cloud.aws.s3.bucket: ${{ secrets.S3_BUCKET_NAME }}
# cloud.aws.region.static: ${{ secrets.S3_REGION }}
# cloud.aws.credentials.accessKey: ${{ secrets.AWS_ACCESS_KEY }}
# cloud.aws.credentials.secretKey: ${{ secrets.AWS_ACCESS_SECRET }}
# kafka.url: ${{ secrets.KAFKA_URL }}
# custom.domain.image.baseUrl: ${{ secrets.BASE_URL }}
# chatgpt.rest-api-key: ${{ secrets.CHAT_GPT_API_KEY }}

# - name: Set up domain-mysql application.yml
# uses: microsoft/variable-substitution@v1
# with:
# files: ./domain-mysql/src/main/resources/application.yml
# env:
# spring.datasource.url: ${{ secrets.LOCAL_DB_URL }}
# spring.datasource.username: ${{ secrets.LOCAL_DB_HOST }}
# spring.datasource.password: ${{ secrets.LOCAL_DB_PASSWORD }}

- name: Set up domain-mongodb application.yml
- name: Set up member-api application-common.yml
uses: microsoft/variable-substitution@v1
with:
files: ./domain-mongodb/src/main/resources/application.yml
files: ./member-api/src/main/resources/application-common.yml
env:
spring.data.mongodb.uri: ${{ secrets.MONGO_URI }}
jasypt.password: ${{ secrets.JASYPT_PASSWORD }}

- name: Build member-api with Gradle
run : |
cd member-api
chmod +x ./gradlew
./gradlew clean build
./gradlew build

- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down
47 changes: 28 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,40 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Set up DataHub with Docker
run: |
echo "${{ secrets.CI_DOCKER_COMPOSE }}" > docker-compose.yml
docker-compose up -d
docker ps

- name: Test domain-mysql with Gradle
run: |
cd domain-mysql
chmod +x ./gradlew
./gradlew test

- name: Set up domain-mongodb test application.yml
uses: microsoft/variable-substitution@v1
with:
files: ./domain-mongodb/src/test/resources/application.yml
env:
spring.data.mongodb.uri: ${{ secrets.MONGO_TEST_URI }}
jasypt.password: ${{ secrets.JASYPT_PASSWORD }}

- name: Test domain-mongodb with Gradle
run: |
cd domain-mongodb
chmod +x ./gradlew
./gradlew test

- name: Set up member-api test application.yml
- name: Set up member-api application-common.yml
uses: microsoft/variable-substitution@v1
with:
files: ./member-api/src/test/resources/application.yml
files: ./member-api/src/main/resources/application-common.yml
env:
spring.datasource.url: ${{ secrets.TEST_DB_URL }}
spring.datasource.username: ${{ secrets.TEST_DB_HOST }}
spring.datasource.password: ${{ secrets.TEST_DB_PASSWORD }}
spring.security.jwt.secret: ${{ secrets.JWT_SECRET_KEY }}
spring.data.mongodb.uri: ${{ secrets.MONGO_TEST_URI }}
custom.domain.image.baseUrl: ${{ secrets.BASE_URL }}
cloud.aws.s3.bucket: ${{ secrets.S3_BUCKET_NAME }}
cloud.aws.region.static: ${{ secrets.S3_REGION }}
cloud.aws.credentials.accessKey: ${{ secrets.AWS_ACCESS_KEY }}
cloud.aws.credentials.secretKey: ${{ secrets.AWS_ACCESS_SECRET }}

- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew

- name: Test with Gradle
run: ./gradlew test
jasypt.password: ${{ secrets.JASYPT_PASSWORD }}

- name: Build member-api with Gradle
run: |
cd member-api
chmod +x ./gradlew
./gradlew build
21 changes: 0 additions & 21 deletions .github/workflows/cr.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ member-api/logs/**

member-api/member-api/logs/**

member-api/src/main/resources/application-local.yml

core/src/test/java/com/kernelsqaure/core/config/JasyptConfigTest.java

### STS ###
.apt_generated
.classpath
Expand Down
Loading
Loading