Skip to content

Commit

Permalink
chore: gradle.yml에 환경변수 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeyeon0130 committed Jul 28, 2024
1 parent c77165f commit c32e4d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ jobs:
- name: gradlew에 실행 권한 부여
run: chmod +x ./gradlew
- name: 프로젝트 빌드
run: ./gradlew clean build -x test
run: ./gradlew build
env:
ACCESS_TOKEN_EXP: ${{ secrets.ACCESS_TOKEN_EXP }}
REFRESH_TOKEN_EXP: ${{ secrets.REFRESH_TOKEN_EXP }}
ODSAY_API_KEY: ${{ secrets.ODSAY_API_KEY }}
DATASOURCE_URL: ${{ secrets.DATASOURCE_URL }}
DATASOURCE_USERNAME: ${{ secrets.DATASOURCE_USERNAME }}
DATASOURCE_PASSWORD: ${{ secrets.DATASOURCE_PASSWORD }}

- name: AWS credential 설정
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ spring:

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
url: ${DATASOURCE_URL}
username: ${DATASOURCE_USERNAME}
password: ${DATASOURCE_PASSWORD}
sql:
init:
platform: mysql
Expand Down

0 comments on commit c32e4d4

Please sign in to comment.