Skip to content

Commit

Permalink
builc ci에 env 설정 코드를 추가한다
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeongkyun committed Oct 15, 2023
1 parent 3b3db52 commit 693a8e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ jobs:
architecture: x64
cache: 'gradle'

- name: Set Yaml
uses: microsoft/variable-substitution@v1
with:
files: ./api/src/main/resources/application.yaml
env:
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_USER_NAME }}
spring.datasource.password: ${{ secrets.DB_USER_PASSWORD }}
oauth.kakao.client-id: ${{ secrets.KAKAO_CLIENT_ID }}
jwt.secret-key: ${{ secrets.SECRET_KEY }}

- name: Build with Gradle
run: |
./gradlew clean build
Expand Down

0 comments on commit 693a8e1

Please sign in to comment.