From f7c9723803eb0498b7e1185592a2087da2dc6805 Mon Sep 17 00:00:00 2001 From: ssupecial Date: Thu, 24 Oct 2024 19:33:54 +0900 Subject: [PATCH] add github actions secrets to cd pipeline --- .github/workflows/cd.yml | 7 +++++++ web/docker-compose.yml | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8b30f01..7f7baa1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,4 +16,11 @@ jobs: - name: Run Docker Compose working-directory: ./web + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} + DYANMODB_TABLE_NAME: ${{ secrets.DYANMODB_TABLE_NAME }} run: docker compose up -d --build + + - name: Prune unused Docker objects + run: docker system prune -f diff --git a/web/docker-compose.yml b/web/docker-compose.yml index 2d11fe4..3c714c8 100644 --- a/web/docker-compose.yml +++ b/web/docker-compose.yml @@ -20,6 +20,10 @@ services: ports: - "8000:8000" command: uvicorn app:app --host 0.0.0.0 --port 8000 + deploy: + resources: + limits: + cpus: '2' dash: build: