From 836a8861c3ee67e89e457a6630e72eea226b9cb9 Mon Sep 17 00:00:00 2001 From: masiljangajji Date: Fri, 11 Oct 2024 07:18:12 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20ci.yaml=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EB=B0=8F=20application.properties=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 11 +++++++++-- src/main/resources/application.properties | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a392129..aef7e92 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,8 +3,8 @@ name: Continuous Integration on: pull_request: - branches: [dev, main] - types: [opened, synchronize] + branches: [ dev, main ] + types: [ opened, synchronize ] jobs: testing: @@ -38,6 +38,13 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle + - name: AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ap-northeast-2 + - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e69de29..247cf26 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -0,0 +1,20 @@ + + +spring.config.import=aws-parameterstore:/config/my-music-note/ + + +spring.jpa.hibernate.naming.implicit-strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect + +spring.datasource.url=${jdbc-url} +spring.datasource.username=${jdbc-username} +spring.datasource.password=${jdbc-password} + + +openai.url.prompt=https://api.openai.com/v1/chat/completions +openai.secret-key=${jwt-secret} + +jwt.secret=${jwt-secret} +jwt.issuer=my-music-note +jwt.access.expiration=1800000 +jwt.refresh.expiration=3600000 \ No newline at end of file