From e7d26743c4214b444ab657de31520a55c74c1aa4 Mon Sep 17 00:00:00 2001 From: yxhwxn Date: Sat, 8 Jun 2024 00:17:44 +0900 Subject: [PATCH] CI/CD: rds settings --- .github/workflows/dev_deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index f0e0299..567fda3 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -24,6 +24,16 @@ jobs: distribution: 'adopt' java-version: '17' + # aws 환경변수 설정 + - name: Set Environment + uses: microsoft/variable-substitution@v1 + with: + files: ./src/main/resources/application.yml + env: + spring.datasource.url: ${{ secrets.DB_URL }} + spring.datasource.username: ${{ secrets.DB_USER }} + spring.datasource.password: ${{ secrets.DB_PASSWORD }} + # gradlew 실행 권한 부여 - name: Grant execute permission for gradlew run: chmod +x gradlew