Skip to content

gcp auth

gcp auth #36

Workflow file for this run

name: gcp-auth-script
on:
push:
branches:
- ci-testing
- main
- release/* #ToDo: add a release branch
pull_request:
workflow_dispatch:
permissions:
actions: read-all|write-all

Check failure on line 12 in .github/workflows/gcp-test.yaml

View workflow run for this annotation

GitHub Actions / gcp-auth-script

Invalid workflow file

The workflow is not valid. .github/workflows/gcp-test.yaml (Line: 12, Col: 12): Unexpected value 'read-all|write-all'
jobs:
activate-vm:
runs-on: ubuntu-latest
steps:
- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1
- name: Install clients
run: |
pip install google-api-python-client paramiko pymongo
- name: Start GPU VM
run: |
cd demos
python3 .github/auth/db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
python3 .github/auth/vm_auth.py ${{ secrets.SSH_KEY }}
run-test:
needs: activate-vm
runs-on: self-hosted
steps:
- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1
- name: Run Demo Testing
run: |
echo "testing things out!"
deactivate-vm:
needs: run-test
runs-on: ubuntu-latest
steps:
- id: 'auth'
uses: 'google-github-actions/[email protected]'
with:
credentials_json: '${{ secrets.GCP_AUTH }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
with:
version: '>= 363.0.0'
- name: 'Stop VM instance'
run: 'gcloud compute instances stop demos-tests --zone us-central1-a'