From bf4508b6d7ea33bb19423da3119181162ccdfea6 Mon Sep 17 00:00:00 2001 From: jinddings Date: Thu, 14 Nov 2024 20:13:20 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20!HOTFIX=20:=20=EB=B0=B0=ED=8F=AC?= =?UTF-8?q?=20=EC=8B=9C=20frontend=20=EC=97=90=EC=84=9C=20ENV=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EC=9D=84=20=EC=9D=B8=EC=8B=9D=20=EB=AA=BB=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=ED=98=84=EC=83=81=20=EC=88=98=EC=A0=95,=20prodctio?= =?UTF-8?q?n.yml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-production.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index fea0130d..00a72be7 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -35,7 +35,11 @@ jobs: - name: Create .env file run: | touch ./${{ matrix.app.dir }}/.env - echo "${{ secrets.ENV }}" > ./${{matrix.app.dir}}/.env + if [ "${{ matrix.app.name }}" = "be" ]; then + echo "${{ secrets.ENV }}" > .env + else + echo "${{ secrets.ENV_FE }}" > .env + fi - name: Install dependencies working-directory: ./${{matrix.app.dir}} @@ -104,8 +108,12 @@ jobs: port: 22 script: | docker system prune -af - echo "${{ secrets.ENV }}" > .env + if [ "${{ matrix.app.name }}" = "be" ]; then + echo "${{ secrets.ENV }}" > .env + else + echo "${{ secrets.ENV_FE }}" > .env + fi docker network create juga-network || true docker run -d \