Skip to content

Commit 26c5c0d

Browse files
authored
Merge pull request #248 from prgrms-web-devcourse-final-project/chore/33-infra
chore[infra]: env파일 생성
2 parents 9702b1d + a39caa8 commit 26c5c0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,11 @@ jobs:
274274
comment: Deploy
275275
command: |
276276
set -Eeuo pipefail
277-
277+
# prod.env 복원
278+
install -d -m 700 /home/ec2-user/configs
279+
printf "%s" "${{ secrets.PROD_ENV_BASE64 }}" | base64 -d > /home/ec2-user/configs/prod.env
280+
chmod 600 /home/ec2-user/configs/prod.env
281+
test -s /home/ec2-user/configs/prod.env || { echo "prod.env empty"; exit 1; }
278282
# ---------------------------------------------------------
279283
# 0) 실행 로그(라인 타임스탬프 부착)
280284
# ---------------------------------------------------------

0 commit comments

Comments
 (0)