Skip to content

Commit

Permalink
fix: divide firebase json depending environment in github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
inh2613 committed Nov 12, 2023
1 parent 32c1c85 commit bdb30ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: jsdaniell/[email protected]
with:
name: "./src/main/resources/firebase/gifthub-b2dcb-firebase-adminsdk-yj7uq-912097b9ae.json"
json: ${{ secrets.FIREBASE_JSON }}
json: ${{ secrets.FIREBASE_DEVELOPMENT_JSON }}

# Docker 이미지 build 및 push
- name: docker build and push
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: jsdaniell/[email protected]
with:
name: "./src/main/resources/firebase/gifthub-b2dcb-firebase-adminsdk-yj7uq-912097b9ae.json"
json: ${{ secrets.FIREBASE_JSON }}
json: ${{ secrets.FIREBASE_DEVELOPMENT_JSON }}

# 5. 테스트를 위한 MySQL 설정
- name: Setup MySQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
- name: Create Json
uses: jsdaniell/[email protected]
with:
name: "./src/main/resources/firebase/gifthub-b2dcb-firebase-adminsdk-yj7uq-912097b9ae.json"
json: ${{ secrets.FIREBASE_JSON }}
name: "./src/main/resources/firebase/gifthub-production-3d052-firebase-adminsdk-zkstv-377ec5747b.json"
json: ${{ secrets.FIREBASE_PRODUCTION_JSON }}

# Docker 이미지 build 및 push
- name: docker build and push
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prod-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
- name: Create Json
uses: jsdaniell/[email protected]
with:
name: "./src/main/resources/firebase/gifthub-b2dcb-firebase-adminsdk-yj7uq-912097b9ae.json"
json: ${{ secrets.FIREBASE_JSON }}
name: "./src/main/resources/firebase/gifthub-production-3d052-firebase-adminsdk-zkstv-377ec5747b.json"
json: ${{ secrets.FIREBASE_PRODUCTION_JSON }}

# 5. 테스트를 위한 MySQL 설정
- name: Setup MySQL
Expand Down

0 comments on commit bdb30ed

Please sign in to comment.