Skip to content

Commit

Permalink
Merge pull request #210 from yudonggeun/bug/issue209
Browse files Browse the repository at this point in the history
[Infra] swagger Authorization 헤더 주입 실패 현상 개선
  • Loading branch information
yudonggeun authored Jun 30, 2024
2 parents cffdf0a + 67cbf86 commit 801f1d5
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v4

# jdk 21 환경 구성
- name: set up jdk 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'

# Gradle wrapper 파일 실행 권한주기
- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand All @@ -30,6 +28,23 @@ jobs:
- name: make api documents
run: ./gradlew --info openapi3

- name: configure openapi3 spec
run: |
yq eval -i '.components.securitySchemes.bearerAuth.type = "http"' ./server/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.scheme = "bearer"' ./server/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.bearerFormat = "JWT"' ./server/src/main/resources/static/openapi3.yaml
yq eval -i '.security[0].bearerAuth = []' ./server/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.type = "http"' ./user/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.scheme = "bearer"' ./user/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.bearerFormat = "JWT"' ./user/src/main/resources/static/openapi3.yaml
yq eval -i '.security[0].bearerAuth = []' ./user/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.type = "http"' ./auth/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.scheme = "bearer"' ./auth/src/main/resources/static/openapi3.yaml
yq eval -i '.components.securitySchemes.bearerAuth.bearerFormat = "JWT"' ./auth/src/main/resources/static/openapi3.yaml
yq eval -i '.security[0].bearerAuth = []' ./auth/src/main/resources/static/openapi3.yaml
- name: push image using jib
run: ./gradlew --info jib

Expand Down

0 comments on commit 801f1d5

Please sign in to comment.