Skip to content

Commit

Permalink
ci: 환경변수 주입
Browse files Browse the repository at this point in the history
  • Loading branch information
GayeongKimm committed Jun 24, 2024
1 parent 63f9e68 commit 665a6d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set yml file
uses: microsoft/variable-substitution@v1
with:
files: src/main/resources/application.yml
env:
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_USERNAME }}
spring.datasource.password: ${{ secrets.DB_PASSWORD }}

- name: set chmod
run: chmod +x ./gradlew

Expand Down

0 comments on commit 665a6d0

Please sign in to comment.