Skip to content

Commit

Permalink
gcp auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Oct 4, 2023
1 parent c705f5c commit 4a279fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/auth/db_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _write_auth_to_file(endpoint, obj_id):
creds = collection.find_one({"_id": object_id_to_find})
del creds['_id']

with open(".github/auth/gcp_auth.json", "w") as f:
with open("gcp_auth.json", "w") as f:
json.dump(creds, f, indent=4)


Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gcp-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
- name: Start GPU VM
run: |
cd demos
python3 .github/auth/db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
python3 .github/auth/vm_auth.py ${{ secrets.SSH_KEY }}
cd demos/.github/auth
python3 db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
python3 vm_auth.py ${{ secrets.SSH_KEY }}
run-test:
needs: activate-vm
Expand Down

0 comments on commit 4a279fc

Please sign in to comment.