From 00ac2466de89d64bb2978eb96aa332ee482c4779 Mon Sep 17 00:00:00 2001 From: LaeekAhmed Date: Sat, 30 Mar 2024 15:40:50 -0400 Subject: [PATCH] credentials not found fix --- .github/workflows/docker.yml | 2 +- backend/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ecdeb17..ddf90c9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -32,7 +32,7 @@ jobs: CREDENTIALS_JSON: ${{ secrets.B64_ENCODED_KEY }} run: | gcloud auth configure-docker us-central1-docker.pkg.dev - docker build --build-arg CREDENTIALS_JSON=./docker_credentials.json -t us-central1-docker.pkg.dev/automate-gdsc/backend-images/backend:latest ./backend + docker build --build-arg CREDENTIALS_JSON=../docker_credentials.json -t us-central1-docker.pkg.dev/automate-gdsc/backend-images/backend:latest ./backend docker push us-central1-docker.pkg.dev/automate-gdsc/backend-images/backend:latest - name: Build and Push Frontend Docker Image diff --git a/backend/Dockerfile b/backend/Dockerfile index f8293ee..d81ffd8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -41,7 +41,7 @@ RUN pip install uvicorn[standard]==0.23.2 # Copy the required files & dir into the container COPY compute ./compute COPY big_query.py ./ -COPY ${CREDENTIALS_JSON} ./credentials.json +COPY ${CREDENTIALS_JSON} ./ # create dir for the HTML files created during profiling RUN mkdir tempHTML