-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Refactor/#275]: 인덱스 제약 수정 및 추가 (#294) * [Refactor/#300] 컨트롤러 인증 구현 (#301) * [Feat/#293] 작가 description json 필드 추가 - imageUrl(required) (#299) * [#298/refactor]: 가입/인증에 따라 다른 내용 채워서 이메일 보내도록 수정 (#302) * [Chore/#303] 단순 이메일 스타일 변경입니다 (#304) * [Refactor/#305] 액션 개선 및 수정 (#306) * [Fix/#308]: 시큐리티 필터 파싱 오류 해결 (#309) * [Feat/#310] 이미지 Webp 변환 코드 구현 (#311) * [Fix/#315] 멤버의 구독 정보 제공을 위한 조회시 취소를 구분하지 않은 문제 해결 (#316) * [#317/Refactor] 시큐리티 필터 제외 목록 점검 및 수정 (#318) --------- Co-authored-by: 지훈 <[email protected]> Co-authored-by: belljun3395 <[email protected]>
- Loading branch information
1 parent
9167809
commit 641ee38
Showing
78 changed files
with
780 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: DEV - Deploy to Amazon ECS DEV | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
workflow_dispatch: | ||
env: | ||
AWS_REGION: ap-northeast-2 | ||
ECR_REPOSITORY: few-ecr | ||
ECS_SERVICE: few-ecs-service | ||
ECS_CLUSTER: few-ecs-cluster | ||
ECS_TASK_DEFINITION: task-definition.json | ||
TASK_DEFINITION_NAME: few-ecs-task | ||
CONTAINER_NAME: few-container | ||
|
||
jobs: | ||
build-and-push-docker-image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: gradle | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY }} | ||
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Jooq Code Generation | ||
run: | | ||
./gradlew jooqCodegenAll | ||
- name: Test with Gradle | ||
run: | | ||
./gradlew test | ||
- name: Generate OpenAPI3 | ||
run: | | ||
./gradlew --info api:openapi3 -PserverUrl=https://api.fewletter.shop | ||
- name: Generate Swagger | ||
run: | | ||
./gradlew --info api:generateStaticSwaggerUIApi | ||
- name: Build with Gradle bootBuildImage, tag, and push image to Amazon ECR | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
run: | | ||
GIT_HASH=$(git rev-parse --short HEAD) | ||
./gradlew buildEcsDockerImage -PimageName=${ECR_REGISTRY}/${ECR_REPOSITORY}:latest | ||
docker tag ${ECR_REGISTRY}/${ECR_REPOSITORY}:latest ${ECR_REGISTRY}/${ECR_REPOSITORY}:${GIT_HASH} | ||
docker push ${ECR_REGISTRY}/${ECR_REPOSITORY} --all-tags | ||
- name: Get ECR Repository image path | ||
id: get-docker-image-path | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
run: | | ||
GIT_HASH=$(git rev-parse --short HEAD) | ||
echo ${ECR_REGISTRY}/${ECR_REPOSITORY}:${GIT_HASH} | ||
echo "::set-output name=image::${ECR_REGISTRY}/${ECR_REPOSITORY}:${GIT_HASH}" | ||
- name: Download task definition | ||
run: | | ||
aws ecs describe-task-definition --task-definition ${TASK_DEFINITION_NAME} --query taskDefinition > task-definition.json | ||
- name: Fill in the new image ID in the Amazon ECS task definition | ||
id: task-definition | ||
uses: aws-actions/amazon-ecs-render-task-definition@v1 | ||
with: | ||
task-definition: ${{ env.ECS_TASK_DEFINITION }} | ||
container-name: ${{ env.CONTAINER_NAME }} | ||
image: ${{ steps.get-docker-image-path.outputs.image }} | ||
|
||
- name: Deploy Amazon ECS task definition | ||
id: ecs-deployment | ||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1 | ||
with: | ||
task-definition: ${{ steps.task-definition.outputs.task-definition }} | ||
service: ${{ env.ECS_SERVICE }} | ||
cluster: ${{ env.ECS_CLUSTER }} | ||
wait-for-service-stability: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
api-repo/src/main/kotlin/com/few/api/repo/dao/member/record/MemberIdAndNameRecord.kt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
api-repo/src/main/kotlin/com/few/api/repo/dao/member/record/MemberRecord.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.few.api.repo.dao.member.record | ||
|
||
import java.net.URL | ||
|
||
data class MemberRecord( | ||
val memberId: Long, | ||
val writerName: String?, // writer only | ||
val imageUrl: URL?, // writer only | ||
val url: URL?, // writer only | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ data class WriterRecord( | |
val writerId: Long, | ||
val name: String, | ||
val url: URL, | ||
val imageUrl: URL, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ import java.net.URL | |
data class WriterDescription( | ||
val name: String, | ||
val url: URL, | ||
val imageUrl: URL, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
.../subscription/query/SelectAllMemberWorkbookSubscriptionStatusNotConsiderDeletedAtQuery.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.