Skip to content

Commit fe4ecfc

Browse files
committed
[FIX] jwt placeholder 깃액션 시도#7
1 parent 1cebeef commit fe4ecfc

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ jobs:
2929
run: chmod +x ./gradlew
3030

3131
- name: Set Yaml-1
32+
uses: microsoft/variable-substitution@v1
3233
with:
33-
files: ./src/main/resources/application-real1.yml
34+
files: ./src/main/resources/application-real1.yml
3435
env:
35-
spring.datasource.url: ${{ secrets.RDS_HOST }}
36-
jwt.secrets: ${{ secrets.JWT_SECRET }}
36+
spring.datasource.url: ${{ secrets.RDS_HOST }}
37+
jwt.secret: ${{ secrets.JWT_SECRET }}
3738
# spring.datasource.username: ${{ secrets.RDS_USERNAME }}
3839
# spring.datasource.password: ${{ secrets.RDS_PASSWORD }}
3940
# cloud.aws.s3.bucket: ${{secrets.AWS_S3_BUCKET_NAME}}

‎src/main/resources/application-real1.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ logging.level:
4545
org.hibernate.SQL: debug
4646

4747
jwt:
48+
secret: ${jwt.secrets}
4849
header: Authorization
49-
secret: ${jwt.secrets.code}
50+
5051

5152
server:
5253
port: 8081

‎src/main/resources/application-real2.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ spring:
2929
default_batch_fetch_size: 1000
3030
open-in-view: false
3131

32-
jwt:
33-
header: Authorization
34-
secret: ${jwt.secrets.code}
35-
36-
3732
cloud:
3833
aws:
3934
s3:
@@ -49,7 +44,9 @@ cloud:
4944
logging.level:
5045
org.hibernate.SQL: debug
5146

52-
47+
jwt:
48+
header: Authorization
49+
secret: ${jwt.secrets}
5350

5451

5552
server:

0 commit comments

Comments
 (0)