From 97577c7b352e91c89a1f8b58a8971562abad217a Mon Sep 17 00:00:00 2001 From: sunghyun <101376904+sunghyun0610@users.noreply.github.com> Date: Mon, 13 Jan 2025 01:47:15 +0900 Subject: [PATCH] =?UTF-8?q?chore=20:=20CD=EC=97=90=20env=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd-dev.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index 07cf1bc..0520071 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -86,10 +86,11 @@ jobs: java-version: '17' distribution: 'temurin' - # 2.5) secret설정한 env 등록 - - name: Create .env file from Secret + # 3) .env 파일 다운로드 및 복사 + - name: Download .env from S3 run: | - echo "${{ secrets.ENV_PROD }}" | base64 --decode > .env + aws s3 cp s3://${{ env.S3_BUCKET_NAME }}/.env /home/ubuntu/project/.env + echo ".env downloaded to /home/ubuntu/project/" # 2.5) secret 설정한 firesbase json key 등록