From b38ca77535a9fe4ebcddbeba3fb5c2c0a344458b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=96=91=EC=98=88=EC=84=B1?= <127856153+yeseong0412@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:24:19 +0900 Subject: [PATCH] Update azure-dev.yml --- .github/workflows/azure-dev.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 1771635..1ce1c4e 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -30,8 +30,22 @@ jobs: uses: actions/checkout@v4 - name: Inject Secrets into YAML - run: echo "${{ secrets.APPLICATION }}" > server/src/main/resources/application.yml - cat server/src/main/resources/application.yml + run: | + echo "spring: + ai: + azure: + openai: + api-key: ${AZURE_OPENAI_API_KEY} + endpoint: ${AZURE_OPENAI_ENDPOINT} + chat: + options: + deployment-name: gpt-4o + image: + options: + deployment-name: dall-e-3" > server/src/main/resources/application.yml + env: + AZURE_OPENAI_API_KEY: ${{ secrets.KET }} + AZURE_OPENAI_ENDPOINT: ${{ secrets.ENDPOINT }}