Skip to content

Commit

Permalink
chore: ci.yaml 변경 및 application.properties 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
masiljangajji committed Oct 10, 2024
1 parent e757c3f commit 836a886
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Continuous Integration
on:

pull_request:
branches: [dev, main]
types: [opened, synchronize]
branches: [ dev, main ]
types: [ opened, synchronize ]

jobs:
testing:
Expand Down Expand Up @@ -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 }}
Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 836a886

Please sign in to comment.