From e51eff131b7448b2216c5eaec64a74b64e0e860a Mon Sep 17 00:00:00 2001 From: Aarsh2001 Date: Wed, 4 Oct 2023 17:27:33 +0100 Subject: [PATCH] gcp auth --- .github/auth/vm_auth.py | 3 +-- .github/workflows/gcp-test.yaml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/auth/vm_auth.py b/.github/auth/vm_auth.py index bd7eb71f..0bb99874 100644 --- a/.github/auth/vm_auth.py +++ b/.github/auth/vm_auth.py @@ -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) diff --git a/.github/workflows/gcp-test.yaml b/.github/workflows/gcp-test.yaml index 7989602f..aa9281a8 100644 --- a/.github/workflows/gcp-test.yaml +++ b/.github/workflows/gcp-test.yaml @@ -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