diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 77b011c..35fd967 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -5,7 +5,7 @@ on: branches: [ "develop" ] pull_request: branches: [ "develop" ] - + permissions: contents: read @@ -41,8 +41,9 @@ jobs: echo "SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}" >> ./env.properties echo "SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}" >> ./env.properties echo "JWT_KEY=${{ secrets.JWT_KEY }}" >> ./env.properties - echo "JWT.EXPIRATION.HOURS=${{ secrets.JWT_EXPIRATION_HOURS }}" >> ./env.properties - echo "JWT.ISSUER=${{ secrets.JWT_ISSUER }}" >> ./env.properties + echo "JWT_EXPIRATION_MINUTES=${{ secrets.JWT_EXPIRATION_MINUTES }}" >> ./env.properties + echo "JWT_REFRESH_EXPIRATION_HOURS=${{ secrets.JWT_REFRESH_EXPIRATION_HOURS }}" >> ./env.properties + echo "JWT_ISSUER=${{ secrets.JWT_ISSUER }}" >> ./env.properties shell: bash # Gradle build (Test 제외) @@ -83,7 +84,8 @@ jobs: echo "SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}" | sudo tee -a .env > /dev/null echo "SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}" | sudo tee -a .env > /dev/null echo "JWT_KEY=${{ secrets.JWT_KEY }}" | sudo tee -a .env > /dev/null - echo "JWT_EXPIRATION_HOURS=${{ secrets.JWT_EXPIRATION_HOURS }}" | sudo tee -a .env > /dev/null + echo "JWT_EXPIRATION_MINUTES=${{ secrets.JWT_EXPIRATION_MINUTES }}" | sudo tee -a .env > /dev/null + echo "JWT_REFRESH_EXPIRATION_HOURS=${{ secrets.JWT_REFRESH_EXPIRATION_HOURS }}" | sudo tee -a .env > /dev/null echo "JWT_ISSUER=${{ secrets.JWT_ISSUER }}" | sudo tee -a .env > /dev/null echo "DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}" | sudo tee -a .env > /dev/null echo "DOCKERHUB_REPOSITORY=${{ secrets.DOCKERHUB_REPOSITORY }}" | sudo tee -a .env > /dev/null diff --git a/wabi/src/main/resources/application-prod.properties b/wabi/src/main/resources/application-prod.properties index d25bc9b..fd5fe02 100644 --- a/wabi/src/main/resources/application-prod.properties +++ b/wabi/src/main/resources/application-prod.properties @@ -8,6 +8,6 @@ logging.level.org.springframework.security=DEBUG logging.level.org.springframework.web=DEBUG logging.level.org.springframework.http=DEBUG jwt.secret-key=${JWT.KEY} -jwt.expiration-minutes=${JWT.EXPIRATION.MINUTES} -jwt.refresh-expiration-hours= ${JWT.REFRESH.EXPIRATION.HOURS} -jwt.issuer=${JWT.ISSUER} +jwt.expiration-minutes=${JWT_EXPIRATION_MINUTES} +jwt.refresh-expiration-hours= ${JWT_REFRESH_EXPIRATION_HOURS} +jwt.issuer=${JWT_ISSUER}