diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index ddd9511..a907818 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -54,10 +54,16 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} # 6. firebase 설정 파일 생성 - - name: Create firebase.json from Secret + - name: Prepare firebase directory run: | mkdir -p src/main/resources/firebase - echo "${{ secrets.FIREBASE_JSON }}" > src/main/resources/firebase/firebase.json + chmod 777 src/main/resources/firebase + + - name: Download firebase.json + env: + FIREBASE_JSON_URL: ${{ secrets.FIREBASE_JSON_URL }} + run: | + curl -L "$FIREBASE_JSON_URL" -o src/main/resources/firebase/firebase.json # 7. Docker 이미지 생성 및 Push - name: Docker 이미지 생성 및 push diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 6c3a0c1..ce268ed 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -24,6 +24,10 @@ cloud: stack: auto: false +fcm: + file_path: firebase/firebase.json + project_id: ${FIREBASE_PROJECT_ID} + --- # 로컬 환경 spring: