Skip to content

Commit

Permalink
[MERGE] Merge pull request #278 from Team-WSS/fix/#277
Browse files Browse the repository at this point in the history
[FIX] 외부 action 사용하여 fcm key-file 생성하도록 변경
  • Loading branch information
Kim-TaeUk authored Jan 20, 2025
2 parents e4985b6 + 2ec8e04 commit 51ae9aa
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/CD-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ jobs:
distribution: 'corretto'
java-version: '17'

- name: Create application.yml and application-prod.yml and websoso-fcm.json
- name: Create application.yml and application-prod.yml
run: |
mkdir src/main/resources
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application.yml
echo "${{ secrets.APPLICATION_PROD_DEVELOP }}" > ./application-prod.yml
echo "${{ secrets.WEBSOSOFCM_JSON }}" > ./websoso-fcm.json
- name: create-json
id: create-json
uses: jsdaniell/[email protected]
with:
name: "websoso-fcm.json"
json: ${{ secrets.WEBSOSOFCM_JSON }}
dir: 'src/main/resources/'

- name: Create apple login key file
env:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ jobs:
distribution: 'corretto'
java-version: '17'

- name: Create application.yml and application-prod.yml and websoso-fcm.json
- name: Create application.yml and application-prod.yml
run: |
mkdir src/main/resources
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application.yml
echo "${{ secrets.APPLICATION_PROD }}" > ./application-prod.yml
echo "${{ secrets.WEBSOSOFCM_JSON }}" > ./websoso-fcm.json
- name: create-json
id: create-json
uses: jsdaniell/[email protected]
with:
name: "websoso-fcm.json"
json: ${{ secrets.WEBSOSOFCM_JSON }}
dir: 'src/main/resources/'

- name: Create apple login key file
env:
Expand All @@ -43,7 +50,7 @@ jobs:

- name: Docker build Setting
uses: docker/[email protected]

- name: Docker hub Login
uses: docker/[email protected]
with:
Expand All @@ -59,7 +66,7 @@ jobs:
needs: deploy-ci-release
runs-on: ubuntu-22.04

steps:
steps:
- name: Run Docker container
uses: appleboy/ssh-action@master
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/CI-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ jobs:
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application.yml
echo "${{ secrets.APPLICATION_PROD_DEVELOP }}" > ./application-prod.yml
echo "${{ secrets.WEBSOSOFCM_JSON }}" > ./websoso-fcm.json
- name: create-json
id: create-json
uses: jsdaniell/[email protected]
with:
name: "websoso-fcm.json"
json: ${{ secrets.WEBSOSOFCM_JSON }}
dir: 'src/main/resources/'

- name: Create apple login key file
env:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ jobs:
distribution: 'corretto'
java-version: '17'

- name: Create application.yml and application-prod.yml and websoso-fcm.json
- name: Create application.yml and application-prod.yml
run: |
mkdir src/main/resources
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application.yml
echo "${{ secrets.APPLICATION_PROD }}" > ./application-prod.yml
echo "${{ secrets.WEBSOSOFCM_JSON }}" > ./websoso-fcm.json
- name: create-json
id: create-json
uses: jsdaniell/[email protected]
with:
name: "websoso-fcm.json"
json: ${{ secrets.WEBSOSOFCM_JSON }}
dir: 'src/main/resources/'

- name: Create apple login key file
env:
Expand Down

0 comments on commit 51ae9aa

Please sign in to comment.