Start NVIDIA T4 Instance #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Start NVIDIA T4 Instance | |
on: | |
workflow_dispatch: | |
jobs: | |
start: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
workload_identity_provider: 'projects/878913763597/locations/global/workloadIdentityPools/github-actions/providers/github' | |
service_account: '[email protected]' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
with: | |
version: '>= 363.0.0' | |
- name: 'Start T4 Instance' | |
run: 'gcloud compute instances start gh-actions-runner-t4 --zone us-central1-a' |