diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index c232f0c9..ecb8d13b 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -14,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build docker image and run tests + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} run: | cd backend docker compose build diff --git a/backend/docker-compose.yaml b/backend/docker-compose.yaml index a330368d..689e5410 100644 --- a/backend/docker-compose.yaml +++ b/backend/docker-compose.yaml @@ -19,6 +19,7 @@ services: - DATABASE_NAME=tutoraidb - DATABASE_USER=tutoraiuser - DATABASE_PASSWORD=tutoraipassword + - OPENAI_API_KEY=${OPENAI_API_KEY} db: image: postgres:13