From ee2e77dad558d9d5496727d12e1ad389e40e1dbe Mon Sep 17 00:00:00 2001 From: Sverre Nystad Date: Sat, 6 Jan 2024 15:38:02 +0100 Subject: [PATCH] Build(#8): Add OPENAI_API_KEY environment variable to docker-compose.yaml --- .github/workflows/django.yml | 2 ++ backend/docker-compose.yaml | 1 + 2 files changed, 3 insertions(+) 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