From 3ebf9e3e75da8ed9b91d5a89ca4a4697814cc9a5 Mon Sep 17 00:00:00 2001 From: Peter Siemens Date: Tue, 3 Dec 2024 11:05:30 -0800 Subject: [PATCH] Test SSH auth --- .github/workflows/deploy-staging.yml | 50 ++++++++++++++++------------ 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 22e112cfa..16c9af7d2 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -19,35 +19,41 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '14.x' - - run: | - npm install - npm install -g gulp - npm rebuild node-sass - gulp build - working-directory: ubyssey/static_src + # - name: Set up Node.js + # uses: actions/setup-node@v4 + # with: + # node-version: '14.x' + # - run: | + # npm install + # npm install -g gulp + # npm rebuild node-sass + # gulp build + # working-directory: ubyssey/static_src - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.9' + # - name: Set up Python + # uses: actions/setup-python@v5 + # with: + # python-version: '3.9' - - name: Install Python dependencies - run: python -m pip install -r requirements.txt + # - name: Install Python dependencies + # run: python -m pip install -r requirements.txt - - name: Collect Django static files - run: DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput + # - name: Collect Django static files + # run: DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput - uses: 'google-github-actions/auth@v2' with: workload_identity_provider: 'projects/1012602718138/locations/global/workloadIdentityPools/ubyssey-wif-pool-staging/providers/ubyssey-oidc-github-staging' service_account: 'deployment@ubyssey-staging.iam.gserviceaccount.com' - - uses: 'google-github-actions/upload-cloud-storage@v2' - with: - path: 'static' - destination: 'ubyssey-staging' + # - uses: 'google-github-actions/upload-cloud-storage@v2' + # with: + # path: 'static' + # destination: 'ubyssey-staging' + - uses: 'google-github-actions/ssh-compute@v1' + with: + instance_name: 'ubyssey-staging-vm-1' + zone: 'us-west1-a' + ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY_STAGING }}' + command: 'echo Hello world'