Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
18 changes: 16 additions & 2 deletions src/main/resources/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
---
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
2 changes: 1 addition & 1 deletion taskflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading