From a39caa849b44b954b8fa4c2f44b74df9e1177a92 Mon Sep 17 00:00:00 2001 From: DooHyoJeong Date: Fri, 10 Oct 2025 02:13:52 +0900 Subject: [PATCH] =?UTF-8?q?chore[infra]:=20env=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI-CD_Pipeline.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI-CD_Pipeline.yml b/.github/workflows/CI-CD_Pipeline.yml index 9385405..7cf47ad 100644 --- a/.github/workflows/CI-CD_Pipeline.yml +++ b/.github/workflows/CI-CD_Pipeline.yml @@ -274,7 +274,11 @@ jobs: comment: Deploy command: | set -Eeuo pipefail - + # prod.env 복원 + install -d -m 700 /home/ec2-user/configs + printf "%s" "${{ secrets.PROD_ENV_BASE64 }}" | base64 -d > /home/ec2-user/configs/prod.env + chmod 600 /home/ec2-user/configs/prod.env + test -s /home/ec2-user/configs/prod.env || { echo "prod.env empty"; exit 1; } # --------------------------------------------------------- # 0) 실행 로그(라인 타임스탬프 부착) # ---------------------------------------------------------