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 a0a7a00 commit c0d030a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/auth/vm_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def start_runner(creds, user, id = "gpu-insatnce", zone='us-central1-a', instanc
ssh.connect(
hostname=f'{instance}.{zone}.compute.internal',
username=ssh_username, # Typically 'your-username' or 'gce-username'
pkey=paramiko.RSAKey(file_obj=credentials.signer.key_file),
key_filename= 'gcp_auth.pem',
)


Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gcp-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: |
cd demos/.github/auth
python3 db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
openssl pkcs8 -inform PEM -outform PEM -in gcp_auth.json -out gcp_auth.pem
python3 vm_auth.py ${{ secrets.SSH_USERNAME}}
run-test:
Expand Down

0 comments on commit c0d030a

Please sign in to comment.