Skip to content

Commit

Permalink
Merge pull request #165 from boostcampwm-2024/Feature/#164_배포_환경_변수_설정
Browse files Browse the repository at this point in the history
Feature/#164 배포 환경 변수 설정
  • Loading branch information
github-actions[bot] authored Nov 21, 2024
2 parents f001b56 + 19f9853 commit 0dc0239
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
NODE_ENV: production
MONGO_URI: ${{ secrets.MONGO_URI }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }}
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run: |
docker-compose up -d --build
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
- name: Run Unit Tests
run: pnpm test
env:
NODE_ENV: development
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }}
VITE_API_URL: ${{ secrets.VITE_API_URL }}

test_building_docker_image:
name: Test Building Docker Image
Expand Down Expand Up @@ -71,5 +74,7 @@ jobs:
NODE_ENV: production
MONGO_URI: ${{ secrets.MONGO_URI }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }}
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run: |
docker-compose build frontend backend
3 changes: 3 additions & 0 deletions .github/workflows/lint_and_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ jobs:
- name: Run Unit Tests
run: pnpm test
env:
NODE_ENV: development
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }}
VITE_API_URL: ${{ secrets.VITE_API_URL }}
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
- ./client/dist:/app/client/dist
environment:
- NODE_ENV=${NODE_ENV}
- VITE_API_URL=${VITE_API_URL}
command: pnpm --filter client run build

backend:
Expand All @@ -18,7 +19,9 @@ services:
environment:
- MONGO_URI=${MONGO_URI}
- NODE_ENV=${NODE_ENV}
- PORT=3000
- JWT_SECRET=${JWT_SECRET}
- JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET}

nginx:
build:
Expand Down

0 comments on commit 0dc0239

Please sign in to comment.