Skip to content

Commit

Permalink
cicd: try connection to instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jan 8, 2024
1 parent a4a91e3 commit 252af1c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-gql-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: update-gql-data
on:
push:
branches:
- gql
jobs:
update-gql-data:
runs-on: ubuntu-22.04
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- uses: 'google-github-actions/auth@v2'
with:
project_id: 'pokeapi-215911'
workload_identity_provider: 'projects/569595515170/locations/global/workloadIdentityPools/github/providers/deploy'
- uses: 'google-github-actions/ssh-compute@v1'
with:
instance_name: 'graphql5'
zone: 'us-east1-b'
ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY }}'
command: |-
sudo -i
(cd pokeapi && ls)
- run: |-
echo '${{ steps.compute-ssh.outputs.stdout }}'
echo '${{ steps.compute-ssh.outputs.stderr }}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,4 @@ modules.xml


# End of https://www.gitignore.io/api/node,firebase,webstorm+all
gha-creds-*.json

0 comments on commit 252af1c

Please sign in to comment.