From 10023678115a1da8cad306687811fb361952abe7 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 16:53:05 +0900 Subject: [PATCH] Update azure-dev.yml --- .github/workflows/azure-dev.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index e94a603..7e959e1 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -29,11 +29,24 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - uses: actions/checkout@v3 - - run: mkdir -p ./src/main/resources - - run: touch ./src/main/resources/application.yml - - run: echo "${{ secrets.APPLICATION }}" > ./src/main/resources/application.yml - - run: cat ./src/main/resources/application.yml + - name: Create application.yml + run: | + mkdir -p ./src/main/resources + cat < ./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