From e4ef04eb1fce8b539640baa9048b7e0adc1f4570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=AB=E3=82=A4=E3=82=BF=E3=82=A4=E3=82=BC=E3=83=B3?= Date: Thu, 2 Jan 2025 14:18:02 +0700 Subject: [PATCH] Create Google Services JSON File for user-auth-service and history-service --- .github/workflows/history-service-deploy.yaml | 9 ++++----- .github/workflows/user-auth-service-deploy.yaml | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/history-service-deploy.yaml b/.github/workflows/history-service-deploy.yaml index d0e5162..75a2c69 100644 --- a/.github/workflows/history-service-deploy.yaml +++ b/.github/workflows/history-service-deploy.yaml @@ -12,11 +12,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Create vizia-sa.json file - working-directory: ./history-service - run: | - touch vizia-sa.json - echo "${{ secrets.VIZIA_SERVICE_ACCOUNT }}" >> vizia-sa.json + - name: Create Google Services JSON File + env: + VIZIA_SERVICE_ACCOUNT: ${{ secrets.VIZIA_SERVICE_ACCOUNT }} + run: echo $VIZIA_SERVICE_ACCOUNT | base64 -di > ./history-service/vizia-sa.json - name: Create app.yaml file working-directory: ./history-service diff --git a/.github/workflows/user-auth-service-deploy.yaml b/.github/workflows/user-auth-service-deploy.yaml index 1ecadd0..94cfc4d 100644 --- a/.github/workflows/user-auth-service-deploy.yaml +++ b/.github/workflows/user-auth-service-deploy.yaml @@ -12,11 +12,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Create vizia-sa.json file - working-directory: ./user-auth-service - run: | - touch vizia-sa.json - echo "${{ secrets.VIZIA_SERVICE_ACCOUNT }}" >> vizia-sa.json + - name: Create Google Services JSON File + env: + VIZIA_SERVICE_ACCOUNT: ${{ secrets.VIZIA_SERVICE_ACCOUNT }} + run: echo $VIZIA_SERVICE_ACCOUNT | base64 -di > ./user-auth-service/vizia-sa.json - name: Create app.yaml file working-directory: ./user-auth-service