Skip to content

Fix/cd action 파이어베이스 디버그 빌드 생성 액션 환경변수 설정 추가 - #277

Merged
sunjoolee merged 5 commits into
developfrom
fix/cd-action
Feb 25, 2026
Merged

sunjoolee merged 5 commits into
developfrom
fix/cd-action

Conversation

@sunjoolee

@sunjoolee sunjoolee commented Feb 25, 2026 •

Copy link
Copy Markdown
Member

작업 상세 내용

  • 파이어베이스 디버그 빌드 생성 액션 - 환경변수 설정 추가

Summary by CodeRabbit

  • Chores
    • 앱 버전을 1.0.1로 업데이트했습니다.
    • 배포 및 빌드 프로세스가 개선되었습니다.

@sunjoolee sunjoolee self-assigned this Feb 25, 2026
@sunjoolee sunjoolee added the bug Something isn't working label Feb 25, 2026
@coderabbitai

coderabbitai Bot commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

안드로이드 CD 워크플로우를 제거하고, 수동 Firebase 배포 워크플로우를 리포맷팅 및 서명 환경 변수를 추가했습니다. 또한 앱 버전을 1.0.1로 업데이트하고 코드 포맷팅을 정리했습니다.

Changes

Cohort / File(s) Summary
GitHub Actions 워크플로우
.github/workflows/android-cd.yml
자동 배포 CD 워크플로우 완전 제거 (Firebase 배포 파이프라인 47줄 삭제)
Firebase 수동 배포 워크플로우
.github/workflows/manual-deploy-to-firebase.yml
워크플로우 재구성: 서명 환경 변수(RELEASE_KEYSTORE_PATH, RELEASE_KEYSTORE_PASSWORD 등) 추가 및 MOOI_DEV_SERVER_URL, MOOI_PROD_SERVER_URL 환경 변수 추가. 전체적인 빌드 및 배포 흐름은 유지
앱 빌드 설정
app/build.gradle.kts
버전코드 6 → 7 업데이트, 버전명 "1.0.0" → "1.0.1" 업데이트
코드 포맷팅
app/src/main/java/.../MainActivity.kt
DebugTag() 함수 선언 포맷팅 정리 (불필요한 공백 제거)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested reviewers

  • harry7408

안녕하세요! 이번 PR을 살펴보니 몇 가지 의견을 나누고 싶네요.

먼저 android-cd.yml 워크플로우 제거는 의도적인 선택인 것 같은데, develop 브랜치에 자동 배포가 필요 없어진 건가요? 혹시 모바일 배포 정책이 변경되셨다면 팀원들과 충분히 공유하셨는지 확인해보시면 좋겠습니다.

manual-deploy-to-firebase.yml 개선은 정말 좋아 보입니다! 서명 환경 변수(RELEASE_KEYSTORE_PATH, RELEASE_KEYSTORE_PASSWORD 등)를 명시적으로 추가한 부분은 빌드 프로세스를 더 명확하게 만드셨네요. 서버 URL 환경 변수도 추가되어서 환경별 설정이 더 유연해졌습니다. 👍

버전 업데이트 (1.0.0 → 1.0.1)는 마이너 버전 업 정도로 보이는데, 패치 내용이 있으신가요? 그리고 MainActivity.kt의 포맷팅은 코드 정렬 차원에서 좋은 정리인 것 같습니다.

전반적으로 매우 깔끔하고 일관성 있는 변경들이에요. 검토 잘 진행하겠습니다! 😊

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 설명이 불완전합니다. 필수 섹션인 'Related Issue'가 누락되었고, '작업 상세 내용' 섹션도 최소한의 정보만 포함하고 있습니다. Related Issue 섹션을 추가하여 관련 이슈 번호를 명시하고, 작업 상세 내용을 보다 구체적으로 설명해주세요.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed 제목이 PR의 주요 변경사항(파이어베이스 디버그 빌드 액션에 환경변수 설정 추가)을 정확히 반영하고 있습니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/cd-action

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/manual-deploy-to-firebase.yml (1)

29-34: 서명 비밀값 범위를 빌드 단계로 제한해 주세요.

현재 GITHUB_ENV에 넣으면 이후 모든 단계(서드파티 액션 포함)에서 접근 가능해 노출 범위가 넓어집니다. 빌드 단계 env로 한정하는 편이 안전합니다.

🔐 제안 수정안
-            -   name: Set signing env vars
-                run: |
-                    echo "RELEASE_KEYSTORE_PATH=$GITHUB_WORKSPACE/release.keystore" >> $GITHUB_ENV
-                    echo "RELEASE_KEYSTORE_PASSWORD=${{ secrets.RELEASE_KEYSTORE_PASSWORD }}" >> $GITHUB_ENV
-                    echo "RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}" >> $GITHUB_ENV
-                    echo "RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}" >> $GITHUB_ENV
-
             -   name: Build Debug APK only
+                env:
+                    RELEASE_KEYSTORE_PATH: ${{ github.workspace }}/release.keystore
+                    RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}
+                    RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }}
+                    RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
                 run: ./gradlew assembleDebug
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/manual-deploy-to-firebase.yml around lines 29 - 34, 현재
"Set signing env vars" 스텝이 echo로 값을 GITHUB_ENV에 넣어 전체 후속 단계에 노출시키므로, 서명 비밀값(예:
RELEASE_KEYSTORE_PATH, RELEASE_KEYSTORE_PASSWORD, RELEASE_KEY_ALIAS,
RELEASE_KEY_PASSWORD)을 GITHUB_ENV 대신 빌드 단계의 env로 제한하도록 변경하세요; 구체적으로 "Set signing
env vars" 스텝에서 echo 줄을 제거하고 대신 서명 관련 변수를 실제 빌드 단계(예: 앱 빌드 step)를 호출하는 job/step의
env: 블록에 직접 매핑하여 secrets 사용(${ { secrets.RELEASE_KEYSTORE_PASSWORD }} 등)으로 전달되게
하며, 필요한 경우 RELEASE_KEYSTORE_PATH는 런타임에서 $GITHUB_WORKSPACE/release.keystore로 계산하여
빌드 step의 env에 설정하세요.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/manual-deploy-to-firebase.yml:
- Line 27: Replace uses of echo when feeding base64 content into base64 -d with
printf '%s' to avoid added newlines and ensure safe decoding; specifically
update the command that writes to debug.keystore (the invocation referencing
secrets.DEBUG_KEYSTORE_BASE64) and the second occurrence noted in the comment
(the other base64 secret on line 39) to use printf '%s' and ensure the secret
variable is quoted when passed to printf. Ensure both invocations replace echo
with printf '%s' and wrap the secret expansion in quotes so decoding is stable
and safe.

---

Nitpick comments:
In @.github/workflows/manual-deploy-to-firebase.yml:
- Around line 29-34: 현재 "Set signing env vars" 스텝이 echo로 값을 GITHUB_ENV에 넣어 전체 후속
단계에 노출시키므로, 서명 비밀값(예: RELEASE_KEYSTORE_PATH, RELEASE_KEYSTORE_PASSWORD,
RELEASE_KEY_ALIAS, RELEASE_KEY_PASSWORD)을 GITHUB_ENV 대신 빌드 단계의 env로 제한하도록 변경하세요;
구체적으로 "Set signing env vars" 스텝에서 echo 줄을 제거하고 대신 서명 관련 변수를 실제 빌드 단계(예: 앱 빌드
step)를 호출하는 job/step의 env: 블록에 직접 매핑하여 secrets 사용(${ {
secrets.RELEASE_KEYSTORE_PASSWORD }} 등)으로 전달되게 하며, 필요한 경우 RELEASE_KEYSTORE_PATH는
런타임에서 $GITHUB_WORKSPACE/release.keystore로 계산하여 빌드 step의 env에 설정하세요.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 20f7b91 and f1d8149.

📒 Files selected for processing (4)
  • .github/workflows/android-cd.yml
  • .github/workflows/manual-deploy-to-firebase.yml
  • app/build.gradle.kts
  • app/src/main/java/com/emotionstorage/emotionstorage/MainActivity.kt
💤 Files with no reviewable changes (1)
  • .github/workflows/android-cd.yml

@sunjoolee
sunjoolee requested a review from harry7408 February 25, 2026 08:08

@harry7408 harry7408 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 👍

@sunjoolee
sunjoolee merged commit 423a274 into develop Feb 25, 2026
3 checks passed
@sunjoolee
sunjoolee deleted the fix/cd-action branch February 25, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants