Skip to content

Commit

Permalink
deploy: fcm
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmondBreez3 committed Jan 23, 2024
1 parent c3d241b commit 107595e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ jobs:
- name: Build with Gradle
run: ./gradlew :Api:build

- name: 환경 변수를 세팅합니다.
run: |
cd ./Infra/src/main/resources
touch ./popcornmate-d7ca1-firebase-adminsdk-svbpw-fce737e873.json
echo "$FIREBASE_JSON" > ./popcornmate-d7ca1-firebase-adminsdk-svbpw-fce737e873.json
sed -i 's/#/"/g' ./popcornmate-d7ca1-firebase-adminsdk-svbpw-fce737e873.json
env:
FIREBASE_JSON: ${{ secrets.FCM_SECRET }}
shell: bash

- name: Docker build
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -52,11 +62,6 @@ jobs:
sudo touch .env
echo "${{ secrets.ENV }}" | sudo tee .env > /dev/null
cd Infra/src/main/resources
sudo touch popcornmate-d7ca1-firebase-adminsdk-svbpw-fce737e873.json
echo "${{ secrets.FCM_SECRET }}" | sed 's/#/"/g' > ./popcornmate-d7ca1-firebase-adminsdk-svbpw-fce737e873.json
sudo tee ./popcornmate-d7ca1-firebase-adminsdk-svbpw-fce737e873.json > /dev/null <<< ""
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
Expand Down

0 comments on commit 107595e

Please sign in to comment.