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 41238a3 commit e51eff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/auth/vm_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ def start_runner(document, pkey, id = "gpu-insatnce", zone='us-central1-a', inst
return output

if __name__ == "__main__":
print(len(sys.argv))
creds, key = sys.argv[1], sys.argv[2]
key, creds = sys.argv[1], sys.argv[2]
# Start the instance
start_runner(eval(creds), key)

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gcp-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Start GPU VM
run: |
cd demos
python3 .github/auth/vm_auth.py ${{ secrets.GCP_AUTH }} ${{ secrets.SSH_KEY }}
python3 .github/auth/vm_auth.py ${{ secrets.SSH_KEY }} ${{ secrets.GCP_AUTH }}
run-test:
needs: activate-vm
Expand Down

0 comments on commit e51eff1

Please sign in to comment.