Skip to content

Commit

Permalink
credentials not found fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LaeekAhmed committed Mar 30, 2024
1 parent 50494a9 commit 00ac246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00ac246

Please sign in to comment.