diff --git a/.github/workflows/release-cd.yml b/.github/workflows/release-cd.yml index 52ac3d21..ccc8e86e 100644 --- a/.github/workflows/release-cd.yml +++ b/.github/workflows/release-cd.yml @@ -57,7 +57,7 @@ jobs: docker push ${{ secrets.DOCKER_REPO }}:latest - name: Update Kubernetes Deployment run: | - envsubst < ./taskflow.yaml + envsubst < ./taskflow.yaml > ./taskflow-back.yaml env: IMAGE_TAG: ${{ steps.version.outputs.VERSION }} # deploy @@ -69,8 +69,8 @@ jobs: key: ${{ secrets.KUBE_HOST_KEY }} port: ${{ secrets.KUBE_HOST_PORT }} overwrite: true - source: ./taskflow.yaml - target: ~/taskflow-back.yaml + source: ./taskflow-back.yaml + target: ~/ - name: Deploy uses: appleboy/ssh-action@master diff --git a/src/main/resources/swagger.yml b/src/main/resources/swagger.yml index 2514d791..ba0766b9 100644 --- a/src/main/resources/swagger.yml +++ b/src/main/resources/swagger.yml @@ -35,5 +35,19 @@ springdoc: path: /swagger/v3/api-docs --- -spring.config.activate.on-profile: prod -swagger.server.url: ${SWAGGER_SERVER_URL:http://localhost:8080} \ No newline at end of file +--- +spring.config.activate.on-profile: "prod" +swagger.server.url: ${SWAGGER_SERVER_URL:http://localhost:8080} + +springdoc: + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + swagger-ui: + path: /swagger + tags-sorter: alpha + operations-sorter: method + display-request-duration: true + disable-swagger-default-url: true + show-actuator: true + api-docs: + path: /swagger/v3/api-docs \ No newline at end of file diff --git a/taskflow.yaml b/taskflow.yaml index 8172ce6f..acedb39c 100644 --- a/taskflow.yaml +++ b/taskflow.yaml @@ -39,7 +39,7 @@ spec: image: clap.kr-central-2.kcr.dev/taskflow/taskflow-server:${IMAGE_TAG} imagePullPolicy: Always command: [ "java", "-jar", "app.jar" ] - args: [ "--spring.profiles.active=dev" ] + args: [ "--spring.profiles.active=prod" ] env: - name: TZ value: "Asia/Seoul"