Skip to content

Commit

Permalink
add github actions secrets to cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ssupecial committed Oct 24, 2024
1 parent 9f3d051 commit f7c9723
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions web/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f7c9723

Please sign in to comment.