Skip to content

Commit

Permalink
chore: Set Yaml in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
essential2189 committed Jan 23, 2024
1 parent 1421749 commit 7227c46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/aws-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set Yaml
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application-dev.yml
env:
spring.datasource.url: ${{ secrets.MYSQL_URL_DEV }}
spring.datasource.username: ${{ secrets.MYSQL_USERNAME_DEV }}
spring.datasource.password: ${{ secrets.MYSQL_PASSWORD_DEV }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ spring:

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${{ MYSQL_URL_DEV }}:3306/today_popup?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&useLegacyDatetimeCode=false&serverTimezone=KST
url: ${{ MYSQL_URL_DEV }}
username: ${{ MYSQL_USERNAME_DEV }}
password: ${{ MYSQL_PASSWORD_DEV }}

Expand Down

0 comments on commit 7227c46

Please sign in to comment.