Skip to content

Commit

Permalink
feat: Register token secret key in github secrets"
Browse files Browse the repository at this point in the history
  • Loading branch information
devmizz committed Jul 20, 2024
1 parent 2b9a6e8 commit 01db089
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/showpot-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
- name: Copy Secrets
uses: microsoft/variable-substitution@v1
with:
files: ./app/src/main/resources/application-cloud-dev.yml
files: './app/src/main/resources/application-dev.yml, ./app/src/main/resources/application-cloud-dev.yml'
env:
token.secret-key: ${{ secrets.TOKEN_SECRET_KEY }}
cloud.aws.credentials.accessKey: ${{ secrets.AWS_ACCESS_KEY }}
cloud.aws.credentials.secretKey: ${{ secrets.AWS_SECRET_KEY }}
cloud.aws.region: ${{ secrets.AWS_REGION }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/showpot-dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
- name: Copy Secrets
uses: microsoft/variable-substitution@v1
with:
files: ./app/src/main/resources/application-cloud-dev.yml
files: './app/src/main/resources/application-dev.yml, ./app/src/main/resources/application-cloud-dev.yml'
env:
token.secret-key: ${{ secrets.TOKEN_SECRET_KEY }}
cloud.aws.credentials.accessKey: ${{ secrets.AWS_ACCESS_KEY }}
cloud.aws.credentials.secretKey: ${{ secrets.AWS_SECRET_KEY }}
cloud.aws.region: ${{ secrets.AWS_REGION }}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ spring:
port: 6379

token:
secret-key: ahRhwlglftmrkwkfehlaussksmsdjraksrmadmfqjfrjtdlrhdkwnwlflsmswlqdptjgodqhrgkrptkftndlTDmfrjtdlek
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

0 comments on commit 01db089

Please sign in to comment.