Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Update azure-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseong0412 authored Aug 26, 2024
1 parent 4e8b4a3 commit 31eef86
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Update application.yml with secrets
- name: Create application.yml with secrets
run: |
sed -i '' 's/{ secret.KEY }/${{ secrets.KEY }}/' ./src/main/resources/application.yml
sed -i '' 's/{ secret.ENDPOINT }/${{ secrets.ENDPOINT }}/' ./src/main/resources/application.yml
mkdir -p ./src/main/resources
cat <<EOF > ./src/main/resources/application.yml
spring:
ai:
azure:
openai:
api-key: ${ { secrets.OPENAI_API_KEY } }
endpoint: ${ { secrets.OPENAI_ENDPOINT } }
chat:
options:
deployment-name: gpt-4o
image:
options:
deployment-name: dall-e-3
EOF
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
Expand Down

0 comments on commit 31eef86

Please sign in to comment.