From 2f65fd3927ecf979b057aa057ab1e6d640377b24 Mon Sep 17 00:00:00 2001 From: Emyr298 Date: Fri, 7 Jun 2024 23:39:56 +0700 Subject: [PATCH] cicd: fix key location --- .github/workflows/deployment.yml | 2 +- Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 53d7a46..a5bd3df 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -41,4 +41,4 @@ jobs: docker container rm -f chefies-backend docker image rm -f chefies-backend docker load -i images/chefies-backend.tar - docker run --name chefies-backend -e SERVICE_ACCOUNT_PATH="./keys/credentials.json" -d --restart always -p 8000:8000 chefies-backend + docker run --name chefies-backend -e SERVICE_ACCOUNT_PATH="/app/keys/credentials.json" -d --restart always -p 8000:8000 chefies-backend diff --git a/Dockerfile b/Dockerfile index 4f9964c..2476fa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,4 +37,5 @@ RUN pip3 install --no-cache-dir --upgrade pip RUN poetry install COPY ./cefies /app/cefies +COPY ./keys /app/keys CMD ["fastapi", "run", "cefies/app.py", "--port", "80"] \ No newline at end of file