Skip to content

Commit

Permalink
chore: JAR 파일에 OAS 파일 누락되는 이슈 해결 및 중복 task 제거 (#391)
Browse files Browse the repository at this point in the history
* chore: 중복되는 task 제거

* chore: cicd 범위 조정
  • Loading branch information
ChooSeoyeon authored Aug 20, 2024
1 parent 4f3a19d commit bca198a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/backend-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches: [ "develop-BE" ]
paths: [ "backend/**" ]
# pull_request:
# branches: [ "develop-BE" ]
# pull_request:
# branches: [ "develop-BE" ]

jobs:

Expand Down Expand Up @@ -38,10 +38,7 @@ jobs:
# uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5

- name: Build with Gradle Wrapper
run: |
./gradlew clean
./gradlew copyOasToSwagger
./gradlew build
run: ./gradlew clean build
working-directory: ./backend

- name: Docker build and push
Expand Down
4 changes: 4 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ tasks.register('copyOasToSwagger', Copy) {

bootJar {
dependsOn copyOasToSwagger
from('src/main/resources/static/swagger-ui') {
include 'openapi3.yaml'
into 'static/swagger-ui/'
}
}

jar {
Expand Down

0 comments on commit bca198a

Please sign in to comment.