Skip to content

Commit 2055829

Browse files
Update .env file setup in Docker pipeline and modify API key handling
1 parent 84c140e commit 2055829

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ GPT_API_VERSION="2024-08-01-preview"
44
EMBEDDING_MODEL="text-embedding-3-small"
55
EMBEDDING_API_VERSION="2023-05-15"
66
ENDPOINT="https://ai4se-openai.openai.azure.com/"
7-
AZURE_OPENAI_API_KEY="${{AZURE_OPENAI_API_KEY}}"
7+
AZURE_OPENAI_API_KEY="${{ secrets.AZURE_OPENAI_API_KEY }}"

.github/workflows/docker-pipeline.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ jobs:
2222
username: ${{ secrets.DOCKER_USERNAME }}
2323
password: ${{ secrets.DOCKER_PASSWORD }}
2424

25+
- name: Set up .env file
26+
run: |
27+
echo "API_TYPE=azure" >> .env
28+
echo "GPT_MODEL=gpt-4o-mini" >> .env
29+
echo "GPT_API_VERSION=2024-08-01-preview" >> .env
30+
echo "EMBEDDING_MODEL=text-embedding-3-small" >> .env
31+
echo "EMBEDDING_API_VERSION=2023-05-15" >> .env
32+
echo "ENDPOINT=https://ai4se-openai.openai.azure.com/" >> .env
33+
echo "AZURE_OPENAI_API_KEY=${{ secrets.AZURE_OPENAI_API_KEY }}" >> .env
34+
2535
- name: Build and push Docker image
2636
uses: docker/build-push-action@v4
2737
with:

0 commit comments

Comments
 (0)