From 19f98533d393ac2d1df2a5079e3646ca4069c0f8 Mon Sep 17 00:00:00 2001 From: minjungw00 Date: Thu, 21 Nov 2024 20:58:27 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20=EB=B0=B0=ED=8F=AC=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=20=EB=B3=80=EC=88=98=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #164 --- .github/workflows/deploy.yml | 2 ++ .github/workflows/lint_and_test.yml | 5 +++++ .github/workflows/lint_and_unit_test.yml | 3 +++ docker-compose.yml | 3 +++ 4 files changed, 13 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 445abea9..2ae33597 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index 0985250e..6baef532 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -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 @@ -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 diff --git a/.github/workflows/lint_and_unit_test.yml b/.github/workflows/lint_and_unit_test.yml index 2965a2e1..936b05be 100644 --- a/.github/workflows/lint_and_unit_test.yml +++ b/.github/workflows/lint_and_unit_test.yml @@ -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 }} diff --git a/docker-compose.yml b/docker-compose.yml index 3d148a18..f20217f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -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: