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 27aef82 commit 1d53183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/auth/vm_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import paramiko
import time
import io
import os

from google.auth import compute_engine
from googleapiclient import discovery
Expand Down Expand Up @@ -42,7 +43,8 @@ def start_runner(creds, path, ssh_username, id = "gpu-insatnce", zone='us-centra
if __name__ == "__main__":
username = sys.argv[1]
# Start the instance
start_runner('gcp_auth.json', '~/.ssh/id_rsa', str(username))
ssh_key_path = os.path.expanduser('~/.ssh/id_rsa')
start_runner('gcp_auth.json', ssh_key_path, str(username))



0 comments on commit 1d53183

Please sign in to comment.