Skip to content

Commit

Permalink
[FEAT] Deploy 스크립트 내 환경변수 파일 생성 Step 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yummygyudon committed Nov 18, 2024
1 parent 46e15b5 commit 95f1472
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ job:
- name: Install Dependencies
run: npm ci

- name: Create Env File
env:
ENV_FILE: ${{ secrets.ENV_DEV }}
run: |
touch .env.dev
echo "$ENV_FILE" >> .env.dev
- name: Set AWS Credentials by export
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ job:
- name: Install Dependencies
run: npm ci

- name: Create Env File
env:
ENV_FILE: ${{ secrets.ENV_PROD }}
run: |
touch .env.prod
echo "$ENV_FILE" >> .env.prod
- name: Set AWS Credentials by export
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit 95f1472

Please sign in to comment.