Skip to content

Commit a1f1f51

Browse files
committed
fix the CICD workflow
1 parent 5369a03 commit a1f1f51

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/mlops_workflow.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: macos-15
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Set up Python
@@ -33,9 +33,18 @@ jobs:
3333

3434
build:
3535
needs: test
36-
runs-on: macos-15
36+
runs-on: macos-latest
3737
steps:
3838
- uses: actions/checkout@v2
39+
- name: Create .env file
40+
run: |
41+
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> .env
42+
echo "LLM_API_KEY=${{ secrets.LLM_API_KEY }}" >> .env
43+
echo "MODEL=${{ secrets.MODEL }}" >> .env
44+
echo "API_V1_STR=${{ secrets.API_V1_STR }}" >> .env
45+
echo "PROJECT_NAME=${{ secrets.PROJECT_NAME }}" >> .env
46+
echo "DESCRIPTION=${{ secrets.DESCRIPTION }}" >> .env
47+
echo "VERSION=${{ secrets.VERSION }}" >> .env
3948
- name: Build Docker image
4049
run: docker build -t cinex10/codinsight:latest .
4150
- name: Log in to Docker Hub

0 commit comments

Comments
 (0)