Skip to content

Commit

Permalink
refactor: alarm server api url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed Nov 18, 2024
1 parent 06e7990 commit b37cd5f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/showpot-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- prod
- feat/prod-cicd

env:
AWS_REGION: ap-northeast-2
ECR_REPOSITORY: showpot

jobs:
Expand Down Expand Up @@ -48,6 +48,7 @@ jobs:
spring.datasource.password: ${{ secrets.APPLICATION_DATASOURCE_PASSWORD_PROD }}
spotify.client-id: ${{ secrets.SPOTIFY_CLIENT_ID }}
spotify.client-secret: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
alarm.api-url: ${{ secrets.ALARM_SERVER_API_URL_PROD }}

- name: Build with Gradle Wrapper
run: ./gradlew clean build -Dspring.profiles.active=prod
Expand All @@ -57,7 +58,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ env.AWS_REGION }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Set image tag
id: set-tag
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ token:
refresh-token-expiration-seconds: 1209600000 # 2weeks = 1000(=1s) * 60 * 60 * 24 * 14

alarm:
api-url: ${ALARM_SERVER_API_URL}
api-url: ${ALARM_SERVER_API_URL}

springdoc:
swagger-ui:
disable-swagger-default-url: true
9 changes: 8 additions & 1 deletion app/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ spring:
token:
secret-key: ${TOKEN_SECRET_KEY}
access-token-expiration-seconds: 3600000 # 1hour = 1000(=1s) * 60 * 60
refresh-token-expiration-seconds: 1209600000 # 2weeks = 1000(=1s) * 60 * 60 * 24 * 14
refresh-token-expiration-seconds: 1209600000 # 2weeks = 1000(=1s) * 60 * 60 * 24 * 14

alarm:
api-url: ${ALARM_SERVER_API_URL_PROD}

springdoc:
swagger-ui:
disable-swagger-default-url: true

0 comments on commit b37cd5f

Please sign in to comment.