From bbd992e2af20ba687140924bd3ed8aa188a81c5f Mon Sep 17 00:00:00 2001 From: Jack Luar Date: Tue, 29 Oct 2024 16:58:53 +0000 Subject: [PATCH] copy secrets.json to local folder for it to be propagated to docker image Signed-off-by: Jack Luar --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6d438d8..a52d8da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,8 +19,8 @@ jobs: run: | cp backend/.env.example backend/.env sed -i 's|{{GOOGLE_API_KEY}}|${{ secrets.GOOGLE_API_KEY }}|g' backend/.env - sed -i 's|{{PATH_TO_GOOGLE_APPLICATION_CREDENTIALS}}|${{ secrets.PATH_TO_GOOGLE_APPLICATION_CREDENTIALS }}|g' backend/.env - cp backend/.env .env + sed -i 's|{{PATH_TO_GOOGLE_APPLICATION_CREDENTIALS}}|src/secret.json|g' backend/.env + cp ${{ secrets.PATH_TO_GOOGLE_APPLICATION_CREDENTIALS }} backend/src - name: Build Docker image run: | make docker