Skip to content

Commit

Permalink
refactor: 환경변수 관련 CD 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
shackstack committed Aug 25, 2024
1 parent 66f7c75 commit 09b316f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/frontend-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ jobs:
- name: 환경변수 설정
run: |
echo "BASE_URL=$BASE_URL" >> .dev.env
echo "GOOGLE_MAP_API_KEY=$GOOGLE_MAP_API_KEY" >> .dev.env
echo "SHARE_KAKAO_LINK_KEY=$SHARE_KAKAO_LINK_KEY" >> .dev.env
echo "BASE_URL=$BASE_URL" >> .env.dev
echo "GOOGLE_MAP_API_KEY=$GOOGLE_MAP_API_KEY" >> .env.dev
echo "SHARE_KAKAO_LINK_KEY=$SHARE_KAKAO_LINK_KEY" >> .env.dev
env:
BASE_URL: ${{secrets.DEV_BASE_URL}}
GOOGLE_MAP_API_KEY: ${{secrets.GOOGLE_MAP_API_KEY}}
SHARE_KAKAO_LINK_KEY: ${{secrets.SHARE_KAKAO_LINK_KEY}}

- name: ✨ 의존성 설치
run: rm -rf ./node_modules yarn.lock && yarn cache clean && yarn install

Expand All @@ -61,7 +61,7 @@ jobs:
with:
name: dev-dist
path: frontend/dist

# deploy:
# needs: build
# runs-on: [self-hosted, dev]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/frontend-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:

- name: 환경변수 설정
run: |
echo "BASE_URL=$BASE_URL" >> .prod.env
echo "GOOGLE_MAP_API_KEY=$GOOGLE_MAP_API_KEY" >> .prod.env
echo "SHARE_KAKAO_LINK_KEY=$SHARE_KAKAO_LINK_KEY" >> .prod.env
echo "BASE_URL=$BASE_URL" >> .env.dev
echo "GOOGLE_MAP_API_KEY=$GOOGLE_MAP_API_KEY" >> .env.dev
echo "SHARE_KAKAO_LINK_KEY=$SHARE_KAKAO_LINK_KEY" >> .env.dev
env:
BASE_URL: ${{secrets.PROD_BASE_URL}}
GOOGLE_MAP_API_KEY: ${{secrets.GOOGLE_MAP_API_KEY}}
Expand Down

0 comments on commit 09b316f

Please sign in to comment.