Skip to content

Commit

Permalink
[Fix/#442] CD 액션 실패 수정 (#444)
Browse files Browse the repository at this point in the history
* fix: api 모듈에서만 openapi3 테스크 수행하도록 수정

* fix: test step 제거

* fix: java 버전 18으로 수정
  • Loading branch information
belljun3395 authored Dec 13, 2024
1 parent 31d6e94 commit 4dc30c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/code-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,27 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '18'
distribution: 'temurin'

- name: Jooq Code Generation
run: |
./gradlew jooqCodegenAll
- name: Test with Gradle
run: |
./gradlew test -parallel
- name: Build with Gradle
run: |
./gradlew api:build -x test
- name: Generate OpenAPI3
run: |
./gradlew openapi3 -PserverUrl=https://api.fewletter.site
./gradlew api:openapi3 -PserverUrl=https://api.fewletter.site
- name: Generate Swagger
run: |
./gradlew generateStaticSwaggerUI
./gradlew api:generateStaticSwaggerUI
- name : Docker Login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/ecs-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
java-version: '17'
cache: gradle

- name: Configure AWS credentials
Expand All @@ -56,17 +56,13 @@ jobs:
run: |
./gradlew jooqCodegenAll
- name: Test with Gradle
run: |
./gradlew test -parallel
- name: Generate OpenAPI3
run: |
./gradlew openapi3 -PserverUrl=https://api.fewletter.site
./gradlew api:openapi3 -PserverUrl=https://api.fewletter.site
- name: Generate Swagger
run: |
./gradlew generateStaticSwaggerUI
./gradlew api:generateStaticSwaggerUI
- name: Build with Gradle bootBuildImage, tag, and push image to Amazon ECR
env:
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/ecs-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
java-version: '17'
cache: gradle

- name: Configure AWS credentials
Expand All @@ -56,17 +56,13 @@ jobs:
run: |
./gradlew jooqCodegenAll
- name: Test with Gradle
run: |
./gradlew test -parallel
- name: Generate OpenAPI3
run: |
./gradlew openapi3 -PserverUrl=https://api.fewletter.shop
./gradlew api:openapi3 -PserverUrl=https://api.fewletter.shop
- name: Generate Swagger
run: |
./gradlew generateStaticSwaggerUI
./gradlew api:generateStaticSwaggerUI
- name: Build with Gradle bootBuildImage, tag, and push image to Amazon ECR
env:
Expand Down

0 comments on commit 4dc30c9

Please sign in to comment.